Skip to content
New issue

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

How to include Python standard library #29

Closed
hanung665 opened this issue Sep 26, 2022 · 1 comment
Closed

How to include Python standard library #29

hanung665 opened this issue Sep 26, 2022 · 1 comment

Comments

@hanung665
Copy link

Let say I'w like to flatify F:/a.py

import requests
import re
come codes here

and the Python+it libs are in C:/anaconda3

Should I use: F:/> stickytape a.py --add-python-path C:/anaconda3 --output-file F:/a-flatified.py or how?

I've tried different arguments but a.py still contains 'import requests' and 'import re'.

@mwilliamson
Copy link
Owner

It's been a while since I've worked on stickytape, but if memory serves, the way it works is by writing out the modules to disk when the script is run, so the imports still being in the script is expected behaviour.

Also, given it's essentially a big ball of hacks, I'd strongly suggest using an alternative.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants