Skip to content

Commit

Permalink
fix: handle spaces in the path to user script
Browse files Browse the repository at this point in the history
  • Loading branch information
conradbez authored May 26, 2024
1 parent eb81832 commit d7673d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hstream/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ def run_server(
):
path_to_hstream_dir = os.path.dirname(os.path.abspath(hstream.__file__))

os.system(f"python {path_to_hstream_dir}/django_server/manage.py migrate")
os.system(f'python "{path_to_hstream_dir}/django_server/manage.py" migrate')
os.environ["HS_FILE_TO_RUN"] = str(file)
command = f"python {path_to_hstream_dir}/django_server/manage.py runserver"
command = f'python "{path_to_hstream_dir}/django_server/manage.py" runserver'
if os.environ.get("PORT", False):
print(f"found port in env, using port {os.environ['PORT']}")
command += f" 0.0.0.0:{os.environ['PORT']}"
Expand Down

0 comments on commit d7673d8

Please sign in to comment.