mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 09:05:53 +08:00
Make run_mypy.py slightly more cross platform.
This commit is contained in:
parent
2451921604
commit
4928c91942
@ -21,7 +21,10 @@ def findModules(path):
|
|||||||
return result
|
return result
|
||||||
|
|
||||||
def main():
|
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.
|
# 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")
|
mypyExe = where("mypy.bat" if sys.platform == "win32" else "mypy")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user