mediawiki-client-tools / mediawiki-dump-generator

Python 3 tools for downloading and preserving wikis
https://github.com/mediawiki-client-tools/mediawiki-scraper
GNU General Public License v3.0
95 stars 14 forks source link

Export path to PYTHONPATH when starting python subprocesses #62

Closed randomnetcat closed 1 year ago

randomnetcat commented 1 year ago

I have a use-case that adds elements to the path dynamically instead of through PYTHONPATH, so they aren't inherited by default, resulting in being unable to find the module. This explicitly exports the module path as an environment variable to ensure that the modules are found.