R
R
r1dddy4sv2021-11-13 11:42:32
Python
r1dddy4sv, 2021-11-13 11:42:32

How to hide python source code when converting to .exe, including add. files?

I have an application that involves several files with python code and a folder with png, json files

Goal: convert all python files into one .exe file

I tried this method , but for some reason it does not see json files, although in the path to them installed via

f'{os.path.dirname(os.path.abspath(__file__))}\\folder\\file.js'

618f7a2aa8893907617491.png
gives an error that the file was not found at the specified path, I try to transfer the file to the desired folder, but it still does not see

Open to alternative solutions

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis, 2021-11-18
@Sat0shi

cx_Freeze, make a setup.py file, python setup.py build

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question