From 4928c919428249e9b73e2536d425168c0464cd6f Mon Sep 17 00:00:00 2001 From: Simon Edwards Date: Tue, 14 Feb 2017 13:47:37 +0100 Subject: Make run_mypy.py slightly more cross platform. --- run_mypy.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'run_mypy.py') diff --git a/run_mypy.py b/run_mypy.py index 24c9d3ae31..25ab54c0bf 100644 --- a/run_mypy.py +++ b/run_mypy.py @@ -21,7 +21,10 @@ def findModules(path): return result def main(): - os.putenv("MYPYPATH", r".;.\plugins;.\plugins\VersionUpgrade;..\Uranium_hint\;..\Uranium_hint\stubs\\" ) + if sys.platform == "win32": + os.putenv("MYPYPATH", r".;.\plugins;.\plugins\VersionUpgrade;..\Uranium\;..\Uranium\stubs\\" ) + else: + os.putenv("MYPYPATH", r".:./plugins:./plugins/VersionUpgrade:../Uranium/:../Uranium\stubs/") # Mypy really needs to be run via its Python script otherwise it can't find its data files. mypyExe = where("mypy.bat" if sys.platform == "win32" else "mypy") -- cgit v1.2.3