X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/f938afb8ab4cb091d12e0ef0311eaea14b774798..7100b7600042ac22687fb3036547841578b7e512:/redakcja/manage.py?ds=inline 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)