瀏覽代碼

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

Steve Thielemann 5 年之前
父節點
當前提交
aa2dc8b8f6
共有 1 個文件被更改,包括 7 次插入1 次删除
  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"