diff --git a/main.py b/main.py index bd3bd26..994c05d 100644 --- a/main.py +++ b/main.py @@ -686,7 +686,7 @@ def get_data(params, files, url): conf = ResponseWorkerConfig('config/response2.json', 'config/workspaces.json') worker = ResponseWorker(conf) fn = uuid4().hex - dir = os.path.join('tmp', fn) + dir = os.path.join(os.getcwd(), 'tmp', fn) os.makedirs(dir) worker.makeResponse(request_string, dir) make_archive(dir, 'zip', dir, '.') @@ -975,5 +975,5 @@ def test(): if __name__ == '__main__': - # main() - test() + main() + # test()