From 3d564cacf42c8904be31eb398e14a31cf387ed30 Mon Sep 17 00:00:00 2001 From: VG Date: Tue, 27 Jan 2015 12:15:04 +0100 Subject: Fix configuration file to change directory automatically - the pastes store directory reflects environment: /tmp/pastes for developing and /pastes for production. --- config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3