Skip to content
This repository has been archived by the owner on Apr 10, 2023. It is now read-only.

Commit

Permalink
✨ Scripts now execute in their folder
Browse files Browse the repository at this point in the history
  • Loading branch information
simse committed Dec 3, 2019
1 parent 5106e90 commit bbaa7e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chronos/runtime.py
Expand Up @@ -52,8 +52,9 @@ def create_script(name=None):
# TODO: Move this script to a folder so it can be copied instead
with open(path + os.path.sep + 'execute.sh', 'w') as file:
file.write('''#!/bin/bash
cd "{}"
source "{}"
python "{}"'''.format(get_activate(uid), script_path))
python "{}"'''.format(path, get_activate(uid), script_path))

# Create pip install
# TODO: Move this script to a folder so it can be copied instead
Expand Down

0 comments on commit bbaa7e9

Please sign in to comment.