debian: compute PROJECT_PATH relative to the wcsinst package
This commit is contained in:
parent
35d82acd26
commit
71865d8aa7
|
@ -3,12 +3,13 @@
|
|||
import os
|
||||
import json
|
||||
import logging.handlers
|
||||
import wcsinst
|
||||
|
||||
DEBUG = True
|
||||
TEMPLATE_DEBUG = DEBUG
|
||||
|
||||
VAR_DIR = '/var/lib/wcsinstd'
|
||||
PROJECT_PATH = os.path.dirname(__file__)
|
||||
PROJECT_PATH = os.path.dirname(wcsinst.__file__)
|
||||
|
||||
if 'ADMINS' in os.environ:
|
||||
ADMINS = [ x.split(';') for x in os.environ['ADMINS'].split(',') ]
|
||||
|
|
Reference in New Issue