From 13ac6d9153a04c87593533b817fd8eb697f972db Mon Sep 17 00:00:00 2001 From: jajupmochi Date: Tue, 26 Jan 2021 10:20:24 +0100 Subject: [PATCH] [Exp] Add taskhub to run exps all in once. --- gklearn/experiments/taskhub.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gklearn/experiments/taskhub.py b/gklearn/experiments/taskhub.py index 84143aa..0e0344b 100644 --- a/gklearn/experiments/taskhub.py +++ b/gklearn/experiments/taskhub.py @@ -19,12 +19,11 @@ if __name__ == '__main__': }, ] + import os command = '' for t in tasks: print(t['file']) command += 'cd ' + t['path'] + '\n' command += 'python3 ' + t['file'] + '\n' - command += 'cd ' + '/'.join(['..'] * len(t['path'].split('/'))) + '\n' - - import os - os.system(command) +# command += 'cd ' + '/'.join(['..'] * len(t['path'].split('/'))) + '\n' + os.system(command)