Jelajahi Sumber

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

Steve Thielemann 5 tahun lalu
induk
melakukan
aa2dc8b8f6
1 mengubah file dengan 7 tambahan dan 1 penghapusan
  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"