#๐Ÿ”’ How to compile an entire hierarchy into a standalone executable using pyinstaller

11 messages ยท Page 1 of 1 (latest)

tribal cipherBOT
#

@raven ice

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

swift panther
#

I mean if you only have python files you can easily put them all in 1 file

#

Then there is something that allows you to store python variables into a file, whatever the type of the variable(s) is

#

So you will have 2 filez

#

You could also store the files (imgs...) as encoded text

#

But through pyinstaller idk. Help my small tips can help

raven ice
#

I thought of that but have json files etc too, thanks for insight tho

raven ice
#

I was launching follow.py as a subprocess so using resource_path wasn't necessary

I removed the resource_path aspect from my start_bot function, as well as the import and it works now

I feel so stupid.

Thanks for all your helps

#

hwo to end

tribal cipherBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.