Browse Source

Corrected cfd file query logic

Snow 8 years ago
parent
commit
c7f1dba5ad
1 changed files with 1 additions and 1 deletions
  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)