]> jfr.im git - irc/quakenet/qwebirc.git/commitdiff
add config.py copying instructions 385/head
authorChris Porter <redacted>
Sun, 23 Feb 2020 00:23:40 +0000 (00:23 +0000)
committerChris Porter <redacted>
Sun, 23 Feb 2020 00:23:40 +0000 (00:23 +0000)
bin/configcheck.py [new file with mode: 0644]
compile.py
run.py

diff --git a/bin/configcheck.py b/bin/configcheck.py
new file mode 100644 (file)
index 0000000..7f99b44
--- /dev/null
@@ -0,0 +1,9 @@
+import sys
+
+try:
+  import config
+except ImportError:
+  print >>sys.stderr, "No config found.\nCopy config.py.example to config.py and then edit it to meet your needs."
+  sys.exit(1)
+
+
index 1a1aef9550baca3f5b714774384af45f39921773..6da69069370e668a1aa3a7fce7e2f0d793705e4a 100755 (executable)
@@ -1,3 +1,5 @@
 #!/usr/bin/env python
+
+import bin.configcheck
 import bin.compile
 bin.compile.main()
diff --git a/run.py b/run.py
index dd21f4845ae407fbb91564dad0af0ac234c0077d..35398f508939ec35090fd31abfe0692ce3c87002 100755 (executable)
--- a/run.py
+++ b/run.py
@@ -1,5 +1,6 @@
 #!/usr/bin/env python
 # this entire thing is a hack and badly needs reimplementing
+import bin.configcheck
 import bin.compile
 bin.compile.vcheck()