summaryrefslogtreecommitdiff
path: root/qface/watch.py
diff options
context:
space:
mode:
Diffstat (limited to 'qface/watch.py')
-rw-r--r--qface/watch.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/qface/watch.py b/qface/watch.py
index 89d07e4..ca3ec73 100644
--- a/qface/watch.py
+++ b/qface/watch.py
@@ -4,6 +4,7 @@ import click
from subprocess import call
from path import Path
import time
+import sys
def sh(cmd, all=False, **kwargs):
@@ -24,7 +25,8 @@ class RunScriptChangeHandler(FileSystemEventHandler):
if self.is_running:
return
self.is_running = True
- sh(self.script, cwd=Path.getcwd())
+ cmd = '{0} {1}'.format(sys.executable, self.script)
+ sh(cmd, cwd=Path.getcwd())
self.is_running = False