We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
other libraries like pyarmor and pyinstaller allow you to launch the program from a python script. example:
import PyInstaller.__main__ PyInstaller.__main__.run([ '--onefile', '--windowed', 'main.py', ])
is equivalent to
pyinstaller --onefile --windowed main.py
How can I do this with pipreqs? We can't use the exec() function due to security reasons...
The text was updated successfully, but these errors were encountered:
ok i figured something
from pipreqs import pipreqs from collections import defaultdict args = defaultdict(lambda: None) args['<path>'] = 'dist/' args['--savepath'] = 'reqs.txt' pipreqs.init(args) pyinstaller_args = [] with open('reqs.txt', 'r', encoding='utf-8') as f: needs = [n.split('==')[0] for n in f.readlines()]
Sorry, something went wrong.
or i can just directly use get_all_imports which is what i need in this case
needs = pipreqs.get_all_imports('dist/') for n in needs: pyinstaller_args.append('--hidden-import=' + n)
No branches or pull requests
other libraries like pyarmor and pyinstaller allow you to launch the program from a python script.
example:
is equivalent to
How can I do this with pipreqs? We can't use the exec() function due to security reasons...
The text was updated successfully, but these errors were encountered: