Explorar o código

If config_dev.py missing, use config.py for settings.

Steve Thielemann %!s(int64=5) %!d(string=hai) anos
pai
achega
aa2dc8b8f6
Modificáronse 1 ficheiros con 7 adicións e 1 borrados
  1. 7 1
      tcp-proxy.py

+ 7 - 1
tcp-proxy.py

@@ -13,7 +13,13 @@ from subprocess import check_output
 
 RAW = True
 
-from config import *
+try:
+    from config_dev import *
+except ModuleNotFoundError as E:
+    from config import *
+
+# from config import *
+# from config_dev import *
 
 # Connect to:
 # HOST = "twgs"