Extend Documentation: special tips for i.e. flask #7581
testor2897
started this conversation in
Features & Development
Replies: 2 comments 1 reply
-
What do you think about this suggestion (extension of documentation)? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Great,
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am positively surprised how easy and smooth the PyInstaller works. You have really done a superb job.
If possible it would be nice if you could extend the documentation for some special applications.
As I had to figure out the best way for my flask (flaskwebgui) application I would like to suggest to give hints to the users which use these modules in combination with pyinstaller.
In my flaskwebgui case (Windows 10, Python 3.7.9) I had two extra challenges:
In order to make a correct package with PyInstaller I edited the spec file:
a = Analysis( ['app.py'], … datas=[('./static', 'static'), ('./templates', 'templates')], … )
app.py is my main module. In the first part of datas statement I had to start with “./” to use direct subdirectories of app.py (is this windows specific?) - documented (https://pyinstaller.org/en/stable/spec-files.html) was "/".
my flask/flaskwebgui framework in app.py is:
In order to use the directories “static” and “templates” (subdirectories of app.py directory) as flask is expecting it I changed the current directory to package root directory.
os.chdir(app.root_path)
So I suggest to hint the users to the subdirectories example (maybe with differences between linux and windows?) and to the path topic.
Unfortunately I have no clue of the corresponding linux formulations.
Thank you very much for the great PyInstaller,
Sebastian
Beta Was this translation helpful? Give feedback.
All reactions