Skip to content

Commit

Permalink
Updated supervisor so it works with windows paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Erol444 committed Aug 1, 2022
1 parent c61cefc commit 7de59cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions depthai_helpers/supervisor.py
Expand Up @@ -43,7 +43,7 @@ def runDemo(self, args):
new_env["DEPTHAI_INSTALL_SIGNAL_HANDLER"] = "0"
try:
cmd = ' '.join([f'"{sys.executable}"', "depthai_demo.py"] + new_args)
self.child = subprocess.Popen(cmd, shell=True, env=new_env, cwd=repo_root)
self.child = subprocess.Popen(cmd, shell=True, env=new_env, cwd=str(repo_root.resolve()))
self.child.communicate()
if self.child.returncode != 0:
raise subprocess.CalledProcessError(self.child.returncode, cmd)
Expand All @@ -57,7 +57,7 @@ def runDemo(self, args):
new_env["DEPTHAI_INSTALL_SIGNAL_HANDLER"] = "0"
new_args = createNewArgs(args)
cmd = ' '.join([f'"{sys.executable}"', "depthai_demo.py"] + new_args)
self.child = subprocess.Popen(cmd, shell=True, env=new_env, cwd=repo_root)
self.child = subprocess.Popen(cmd, shell=True, env=new_env, cwd=str(repo_root.resolve()))
self.child.communicate()

def checkQtAvailability(self):
Expand Down

0 comments on commit 7de59cb

Please sign in to comment.