Quellcode durchsuchen

Corrected cfd file query logic

Snow vor 8 Jahren
Ursprung
Commit
c7f1dba5ad
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      hdpg1d/preprocess.py

+ 1 - 1
hdpg1d/preprocess.py

@@ -9,7 +9,7 @@ from scipy.linalg import block_diag
 # load the configuration file
 installDir = os.path.split(__file__)[0]
 cfgPath = os.path.join(installDir, "config")
-for loc in os.curdir, os.path.expanduser("~"), cfgPath:
+for loc in cfgPath, os.curdir, os.path.expanduser("~"):
     try:
         with open(os.path.join(loc, "config.json")) as source:
             configdata = json.load(source)