diff --git a/.gitignore b/.gitignore index 916c1f10c0b2f3c920684ea5c71f454b3dbc1c49..35c39401187f8fdd5b7081aa5099e33a7d5c6833 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ Breakpoints_v2.xcbkptlist *.xcuserstate *.pyc +*~ +/dstatInterface/dist/ +/dstatInterface/build/ \ No newline at end of file diff --git a/dstatInterface/build_windows.py b/dstatInterface/build_windows.py index 2f01a5335b4ab2d524a17a55b89486a69e091093..4d84391ed40f5bfc011e5a9b05ac03584faf13d1 100644 --- a/dstatInterface/build_windows.py +++ b/dstatInterface/build_windows.py @@ -1,6 +1,9 @@ #!/usr/bin/env python __requires__ = 'PyInstaller==2.1' -import PyInstaller.main as pyi +import os, sys +os.chdir(os.path.dirname(sys.argv[0])) + +import PyInstaller.main as pyi #For some reason, it gets the path here, so working dir must be set first pyi.run(['interface_test.spec'])