ftpsolutions / python-third-party-license-file-generator

A tool that walks your Python project's requirements and gathers the third party licenses for you
MIT License
13 stars 5 forks source link

site-packages folder of virtualenv is not correctly read #4

Closed mshama closed 4 years ago

mshama commented 4 years ago

on Windows when trying to execute the script, the site-packages folder of the calling python is used and not of the python executable specified in the -p argument.

Debugging showed that in _run_subprocessfor windows when using sys.executable in subprocess.Popen, the sys.path has the value of sys.executable and not of the venv. I have tested using args=command_line.split() without executable=sys.executable and it worked as expected

initialed85 commented 4 years ago

Fixed by https://github.com/ftpsolutions/python-third-party-license-file-generator/pull/9 which is now merged in- release 2020.7.18 is up on PyPI at https://pypi.org/manage/project/third-party-license-file-generator/release/2020.7.18/

Thanks all involved- will close this.