Skip to content

Commit

Permalink
Fix spaces in path (All-Hands-AI#3547)
Browse files Browse the repository at this point in the history
* Fix for issue where spaces in path results in error
  • Loading branch information
tofarr authored Aug 23, 2024
1 parent 6180483 commit 8d47ceb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion openhands/runtime/utils/runtime_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ def _create_project_source_dist():
logger.info(f'Using project root: {project_root}')

# run "python -m build -s" on project_root to create project tarball
result = subprocess.run(f'python -m build -s {project_root}', shell=True)
result = subprocess.run(
f'python -m build -s ' + project_root.replace(" ", r"\ "), shell=True
)
if result.returncode != 0:
logger.error(f'Build failed: {result}')
raise Exception(f'Build failed: {result}')
Expand Down

0 comments on commit 8d47ceb

Please sign in to comment.