Fix script to include repos in PYTHONPATH
The repos checkout needs to be in the PYTHONPATH for the import of the xstatic module to work. Since we invoke the xstatic_check_version.py by absolute path, Python does not include the cwd() in the PYTHONPATH. Change-Id: Idd4f8db6334c9f29168e3bc39de3ed95a4e1c60f
This commit is contained in:
parent
0af0f35a2a
commit
d7598e96ba
@ -18,6 +18,10 @@ import sys
|
||||
|
||||
from setuptools_scm import get_version
|
||||
|
||||
# add the xstatic repos checkout to the PYTHONPATH so we can
|
||||
# import its contents
|
||||
sys.path.append(os.getcwd())
|
||||
|
||||
xs = None
|
||||
for name in os.listdir('xstatic/pkg'):
|
||||
if os.path.isdir('xstatic/pkg/' + name):
|
||||
|
Loading…
Reference in New Issue
Block a user