L
L
likel0vsky2021-09-23 15:09:12
Building projects
likel0vsky, 2021-09-23 15:09:12

What to do if the program in Python + Pyinstaller does not see the folder?

Wrote an application in Python, compiled with pyinstaller:

pyinstaller --distpath=C:\Users\nkikd\Desktop\explorer --onefile C:\Users\nkikd\Desktop\explorer\main.py
.
It sees and processes the files inside the folder with the program itself, but not the child folders. On one forum, they suggested replacing --onefile with --onedir, but I need the "compact version". Relative path was not used, folders and files are present in the program directory.

What can be done in this case?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
FOUREX, 2021-09-25
@likel0vsky

Try like this


$cd C:\Users\nkikd\Desktop\explorer
$pyinstaller --distpath=C:\Users\nkikd\Desktop\explorer --onefile main.py

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question