Skip to content
Snippets Groups Projects
Commit 0c859dd9 authored by Beerwerth, Randolf's avatar Beerwerth, Randolf
Browse files

Check if path in environment exists

parent 259def39
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ sys.path.append(os.path.abspath(os.path.dirname(__file__)))
if sys.version_info >= (3, 8, 0) and sys.platform == 'win32':
if "PATH" in os.environ:
for p in os.environ['PATH'].split(';'):
if p:
if p and os.path.exists(p):
os.add_dll_directory(p)
from libBornAgainFit import *
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment