Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
fix bug (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
QuanluZhang authored and yds05 committed Sep 30, 2018
1 parent 9d88f1b commit 5c04262
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/nnicmd/launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,8 @@ def launch_experiment(args, experiment_config, mode, webuiport, experiment_id=No
# Deal with annotation
if experiment_config.get('useAnnotation'):
path = os.path.join(tempfile.gettempdir(), 'nni', 'annotation')
if not os.path.isdir(path):
os.makedirs(path)
path = tempfile.mkdtemp(dir=path)
code_dir = expand_annotations(experiment_config['trial']['codeDir'], path)
experiment_config['trial']['codeDir'] = code_dir
Expand Down

0 comments on commit 5c04262

Please sign in to comment.