Skip to content

Commit

Permalink
Make run_mypy.py slightly more cross platform.
Browse files Browse the repository at this point in the history
  • Loading branch information
sedwards2009 committed Feb 14, 2017
1 parent 2451921 commit 4928c91
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion run_mypy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 4928c91

Please sign in to comment.