O
O
Old_TyT2021-08-28 14:44:04
Python
Old_TyT, 2021-08-28 14:44:04

How to compile 1 python file?

There is a program that consists of two parts config.py and main.py, how to compile main.py without compiling config.py (that it was possible to change the data in the config)?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
rPman, 2021-08-28
@Old_TyT

There are outdated compilers/translators, and compatibility with libraries is in question.
Nuitka is probably the closest to getting exactly the binary code, it translates the python code into C, and it can already be compiled.
upd. he also compiles, just checked, they did it cool, hello world .exe - 500kb but this is the code and not the wrapped archive with python

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question