diff --git a/dstatInterface/build_windows.py b/dstatInterface/build_windows.py
index 4d84391ed40f5bfc011e5a9b05ac03584faf13d1..b5377bea146eaebd2484b376dc8d5c9030973922 100644
--- a/dstatInterface/build_windows.py
+++ b/dstatInterface/build_windows.py
@@ -5,5 +5,8 @@ __requires__ = 'PyInstaller==2.1'
 import os, sys
 os.chdir(os.path.dirname(sys.argv[0]))
 
+args = ['interface_test.spec']
+args.extend(sys.argv[1:])
+
 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'])
+pyi.run(args)