aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/config.py b/config.py
index 8b53f8c..240b0aa 100644
--- a/config.py
+++ b/config.py
@@ -1,7 +1,9 @@
# configuration file of pastme service
+import os.path
+
# the directory where the pastes are stored
-pastedir = '/tmp/pastes'
+pastedir = '/pastes' if os.path.exists('/pastes') else '/tmp/pastes'
# how many days a paste remain stored
timeout = 30