diff options
Diffstat (limited to '__init__.py')
-rw-r--r-- | __init__.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/__init__.py b/__init__.py index 3eebb3f..7379f82 100644 --- a/__init__.py +++ b/__init__.py @@ -23,13 +23,13 @@ def new_mod_check(mod_names): # skip numpy if the numpy_bad folder was created if (mod_name == "numpy"): for path in site.getsitepackages(): - if ("2.79" in path): - numpy_path = path + "/numpy" - numpy_bad_path = path + "/numpy_bad" - # rename the existing numpy folder to numpy bad and install newer numpy - if (file_ops.f_exists(numpy_bad_path) == False): - file_ops.rename(numpy_path, numpy_bad_path) - rtn.append("numpy") + numpy_path = path + "/numpy" + numpy_bad_path = path + "/numpy_bad" + # rename the existing numpy folder to numpy bad and install newer numpy + if (("2.79" in path) and ("site-packages" in path) + and (file_ops.f_exists(numpy_bad_path) == False)): + file_ops.rename(numpy_path, numpy_bad_path) + rtn.append("numpy") break continue |