From d7c5561275615efa7c595f8cf74324952bae9351 Mon Sep 17 00:00:00 2001 From: Crysple <871886504@qq.com> Date: Fri, 4 Jan 2019 11:24:18 +0800 Subject: [PATCH] fix permision deny --- tools/nni_cmd/launcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/nni_cmd/launcher.py b/tools/nni_cmd/launcher.py index 22984f3fa4..5acc84fd0c 100644 --- a/tools/nni_cmd/launcher.py +++ b/tools/nni_cmd/launcher.py @@ -277,7 +277,7 @@ def launch_experiment(args, experiment_config, mode, config_file_name, experimen nni_config.set_config('restServerPid', rest_process.pid) # Deal with annotation 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): os.makedirs(path) path = tempfile.mkdtemp(dir=path)