I did a small project that includes importing various python files into other python files. Here is my directory structure.
Main_Folder |_ my_main_file.py |_ Sites (a directory inside Main_Folder) |_ __init__.py |_ some_other.py
This is basically my directory structure. This some_other.py
imported inside my my_main_file.py
with the following command:
from Sites import *
I import everything from this directory. So what I wanted to do was make this whole project in a standalone binary . I use pyintaller to convert my .py
files to .exe
. But I only wrote scripts that have everything in 1 file, which makes the task easier. But this time I'm trying to do something new.
My python script takes command line arguments and works. Python script will not work without command line arguments. I can convert to exe, but this exe does nothing, even when I give arguments.
So, I got the .spec
file from pyinstaller and modified it to get some_other.py
file. The SPEC file looks like this:
This does the .exe
, but this exe will not work. Exe will not show anything. But it looks like 11 MB. Is there anything for this? I tried nuitka
, but that gives an error saying that I could not find gendef.exe
, and I'm not very interested in installing minGW.
Btw, I'm on a 64-bit machine, and py2exe bundle_file:1
will not work for me.
source share