This commit is contained in:
Ivan Vazhenin
2024-02-13 16:02:26 +03:00
parent 7cb5a93c90
commit 03db4ece92

View File

@@ -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()