2022-01-21 20:00:19

Hi!
I wonder if there is a way to easily compile a Python script to exe? For example, as in the case of BGT?
I read on the net that there is a way to edit items in the context menu. I just don't know how to create a registration file that allows me to call the pyinstaller module on a Python code with the context menu key.

2022-01-21 20:11:06

Just use the shell.  You'll need to anyway because that's where errors go.

My Blog
Twitter: @ajhicks1992

2022-01-21 20:12:03

I would say no because it can be much more involved. There is not going to be any one solution that can do this flawlessly. You will need to add things to your pyinstaller spec file, for instance, hidden imports it might not detect and assets in the data section.

Facts with Tom MacDonald, Adam Calhoun, and Dax
End racism
End division
Become united

2022-01-21 20:50:51

No there isn't a way to do this, and you should probably get away from this anyways because traditionally packaging your app is going to be more involved. So just use the shell as others have said.

2022-01-22 10:41:19

What do you by the shell? is thaat a package of python or something different?

Lucas1 wrote:

No there isn't a way to do this, and you should probably get away from this anyways because traditionally packaging your app is going to be more involved. So just use the shell as others have said.

End of Post!
Leos signing off.
CFN ID: LeosKhai. (Always looking to fight people)
Discord: leos_khai

2022-01-22 13:12:58

no that's the commandline, probably

I am a hunter named Grunt. I didn't realize that until now.

2022-01-22 13:20:44

A shell can be the command prompt or power shell or even Bash If I am not mistaken.

best regards
never give up on what ever you are doing.

2022-01-22 14:22:42

Yes, I mean the command prompt.

2022-01-23 11:51:43

But yeah, you still need things like pyinstaller right? i don't believe python can compile to exe with out it?

End of Post!
Leos signing off.
CFN ID: LeosKhai. (Always looking to fight people)
Discord: leos_khai

2022-01-23 15:02:41

Yeah you do. pyinstaller or nuitka or what ever you want to use.

best regards
never give up on what ever you are doing.

2022-02-03 20:13:45

I personally think compilations in Python can be pretty stressful. PyInstaller can be quite buggy at times.

-----
YouTube
GitHub
Discord: @tunmi13#1880