Skip to content

πŸ™Œ OpenHands: AI-Driven Development

Fix spaces in path (#3547)

tofarr8d47cebde95d
diff --git a/openhands/runtime/utils/runtime_build.py b/openhands/runtime/utils/runtime_build.py
index c001b4b490..5a4270903a 100644
--- a/openhands/runtime/utils/runtime_build.py
+++ b/openhands/runtime/utils/runtime_build.py
@@ -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}')