diff --git a/pyogg/library_loader.py b/pyogg/library_loader.py index 711b1ba..cbb4914 100644 --- a/pyogg/library_loader.py +++ b/pyogg/library_loader.py @@ -101,8 +101,8 @@ def load(name, paths = None, tests = []): @staticmethod def load_other(name, paths = None, tests = []): - os.environ["PATH"] += ";" + ";".join((os.getcwd(), _here)) - if paths: os.environ["PATH"] += ";" + ";".join(paths) + os.environ["PATH"] += os.pathsep + os.pathsep.join((os.getcwd(), _here)) + if paths: os.environ["PATH"] += os.pathsep + os.pathsep.join(paths) for style in _other_styles: candidate = style.format(name) @@ -117,8 +117,8 @@ def load_other(name, paths = None, tests = []): @staticmethod def load_windows(name, paths = None, tests = []): - os.environ["PATH"] += ";" + ";".join((os.getcwd(), _here)) - if paths: os.environ["PATH"] += ";" + ";".join(paths) + os.environ["PATH"] += os.pathsep + os.pathsep.join((os.getcwd(), _here)) + if paths: os.environ["PATH"] += os.pathsep + os.pathsep.join(paths) not_supported = [] # libraries that were found, but are not supported for style in _windows_styles: