Skip to content

Commit

Permalink
change lmn root for the case --contain is set
Browse files Browse the repository at this point in the history
  • Loading branch information
takuma-yoneda committed Jul 11, 2024
1 parent b7545ff commit 1e034f1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lmn/cli/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,9 @@ def handler(project: Project, machine: Machine, parsed: Namespace, preset: dict)

# HACK: Dirty but just overwrite machine.lmndirs with new paths
# Add the hash to lmndirs
new_lmn_root = Path(machine.lmndirs.rootdir) / _hash
machine.lmndirs.codedir = new_lmn_root / 'code'
rootdir = Path(machine.lmndirs.rootdir)
new_lmn_root = rootdir.parent / (rootdir.name + f'--{_hash}')
machine.lmndirs.codedir = new_lmn_root / 'code'
machine.lmndirs.mountdir = new_lmn_root / 'mount'
machine.lmndirs.outdir = new_lmn_root / 'output'
machine.lmndirs.scriptdir = new_lmn_root / 'script'
Expand Down

0 comments on commit 1e034f1

Please sign in to comment.