Explorar el Código

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

Steve Thielemann hace 5 años
padre
commit
aa2dc8b8f6
Se han modificado 1 ficheros con 7 adiciones y 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"