summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorAleš Smodiš <aless@guru.si>2015-09-18 19:30:20 +0200
committerAleš Smodiš <aless@guru.si>2015-09-18 19:30:20 +0200
commitdce8ec719b1d85acf3c753effae3f28629dd847c (patch)
tree33d34df11ad9a666d8734b51b6467adc07cbcbb5 /server
parent194ef383e2a61b8c9dcf85bc5ca0fc377089d349 (diff)
Set problems path via CODEQ_PROBLEMS environment variable.
Diffstat (limited to 'server')
-rw-r--r--server/problems.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/server/problems.py b/server/problems.py
index a036602..220a746 100644
--- a/server/problems.py
+++ b/server/problems.py
@@ -6,8 +6,7 @@ import threading
import os.path
from db import get_connection, return_connection
-#sys.path.append('/home/robert/git/codeq-problems/')
-_path_prefix = '/home/robert/git/codeq-problems/'
+_path_prefix = os.environ.get('CODEQ_PROBLEMS') or '/var/local/codeq-problems'
_module_loading_lock = threading.RLock() # TODO: make a more fine-grained locking import machinery
def load_module(fullname):