set sitedir for win32
This commit is contained in:
parent
a55773f4d5
commit
ea7e01ec3d
1 changed files with 12 additions and 0 deletions
|
@ -5,6 +5,18 @@
|
|||
|
||||
import sys
|
||||
|
||||
if sys.platform == 'win32':
|
||||
from os.path import normpath, dirname, abspath, join
|
||||
import site
|
||||
base = normpath(dirname(dirname(abspath(__file__))))
|
||||
for site_packages in (
|
||||
base,
|
||||
normpath(join(base, '..', 'platform', 'Shared', 'lib', 'python3.4', 'site-packages')),
|
||||
normpath(join(base, '..', 'platform', 'win32', 'Lib', 'site-packages')),
|
||||
):
|
||||
site.addsitedir(site_packages)
|
||||
sys.path.append(normpath(join(base, '..', 'platform', 'win32')))
|
||||
|
||||
import api
|
||||
import commands
|
||||
import server
|
||||
|
|
Loading…
Reference in a new issue