Commit 573f23ce authored by Zejun Lin's avatar Zejun Lin Committed by QuanluZhang
Browse files

fix permision deny (#567)

parent b7729f0a
...@@ -287,7 +287,7 @@ def launch_experiment(args, experiment_config, mode, config_file_name, experimen ...@@ -287,7 +287,7 @@ def launch_experiment(args, experiment_config, mode, config_file_name, experimen
nni_config.set_config('restServerPid', rest_process.pid) nni_config.set_config('restServerPid', rest_process.pid)
# Deal with annotation # Deal with annotation
if experiment_config.get('useAnnotation'): if experiment_config.get('useAnnotation'):
path = os.path.join(tempfile.gettempdir(), 'nni', 'annotation') path = os.path.join(tempfile.gettempdir(), os.environ['USER'], 'nni', 'annotation')
if not os.path.isdir(path): if not os.path.isdir(path):
os.makedirs(path) os.makedirs(path)
path = tempfile.mkdtemp(dir=path) path = tempfile.mkdtemp(dir=path)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment