addons-server/services/wsgi/versioncheck.py

14 строки
318 B
Python

import os
import site
wsgidir = os.path.dirname(__file__)
for path in ['../',
'../..',
'../../..',
'../../lib',
'../../vendor/lib/python',
'../../apps']:
site.addsitedir(os.path.abspath(os.path.join(wsgidir, path)))
from update import application