Fix
This commit is contained in:
6
main.py
6
main.py
@@ -686,7 +686,7 @@ def get_data(params, files, url):
|
|||||||
conf = ResponseWorkerConfig('config/response2.json', 'config/workspaces.json')
|
conf = ResponseWorkerConfig('config/response2.json', 'config/workspaces.json')
|
||||||
worker = ResponseWorker(conf)
|
worker = ResponseWorker(conf)
|
||||||
fn = uuid4().hex
|
fn = uuid4().hex
|
||||||
dir = os.path.join('tmp', fn)
|
dir = os.path.join(os.getcwd(), 'tmp', fn)
|
||||||
os.makedirs(dir)
|
os.makedirs(dir)
|
||||||
worker.makeResponse(request_string, dir)
|
worker.makeResponse(request_string, dir)
|
||||||
make_archive(dir, 'zip', dir, '.')
|
make_archive(dir, 'zip', dir, '.')
|
||||||
@@ -975,5 +975,5 @@ def test():
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
# main()
|
main()
|
||||||
test()
|
# test()
|
||||||
|
|||||||
Reference in New Issue
Block a user