X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/f938afb8ab4cb091d12e0ef0311eaea14b774798..1424bfacd82ffc238f90f1baa99388fc1ac9f2e7:/redakcja/manage.py diff --git a/redakcja/manage.py b/redakcja/manage.py index 1fc25dde..4c118422 100755 --- a/redakcja/manage.py +++ b/redakcja/manage.py @@ -9,10 +9,15 @@ except ImportError: if __name__ == "__main__": # Append lib and apps directories to PYTHONPATH - from os import path + import os import sys - PROJECT_ROOT = path.realpath(path.dirname(__file__)) - sys.path += [PROJECT_ROOT + '/../apps', PROJECT_ROOT + '/../lib'] + PROJECT_ROOT = os.path.realpath(os.path.dirname(__file__)) + sys.path += [os.path.realpath(os.path.join(*x)) for x in ( + (PROJECT_ROOT, '..', 'apps'), + (PROJECT_ROOT, '..', 'lib') + )] + + execute_manager(settings)