summaryrefslogtreecommitdiff
path: root/subplot/server.py
diff options
context:
space:
mode:
Diffstat (limited to 'subplot/server.py')
-rw-r--r--subplot/server.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/subplot/server.py b/subplot/server.py
index dca7f10..5cc9d9b 100644
--- a/subplot/server.py
+++ b/subplot/server.py
@@ -24,7 +24,8 @@ def start_chunk_server(ctx):
shutil.copy(os.path.join(srcdir, x), x)
chunks = "chunks"
- os.mkdir(chunks)
+ if not os.path.exists(chunks):
+ os.mkdir(chunks)
port = random.randint(2000, 30000)
ctx["config"] = config = {