Merge pull request #1447 from clinton-hall/fix/libs

Fix .pth files not loading
This commit is contained in:
Labrys of Knossos 2018-12-23 09:04:36 -05:00 committed by GitHub
commit f78eac0367
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,6 @@
import os
import site
import sys
import libs.util
@ -32,6 +33,7 @@ def add_libs(name):
if name in MANDATORY and name not in LOADED:
path = libs.util.add_path(DIRECTORY[name])
if path:
site.addsitedir(path)
LOADED[name] = path
return path