sys.path with pyinstaller

250 views
Skip to first unread message

tobeweb tobeweb

unread,
Jun 25, 2021, 1:16:27 PM6/25/21
to PyInstaller
Issue with imports. May be someone know this problem...

srvCopy.py contains :
sys.path.append(os.path.abspath("../Process/"))
import Process
...


Process.py contains :
import json
...


Pyinstaller can't find any module, not even json.


Sebastian Ulanowski

unread,
Jul 9, 2021, 4:40:52 AM7/9/21
to PyInstaller
Hi, have you find a solution for this? Because i faced the same problem, or similar...

Can you please tell me where you executed this commands? During bulding exe file?

pyi-makespec --paths=/path/to/thisdir \ --paths=/path/to/otherdir myscript.py

I will try to do this the same
Reply all
Reply to author
Forward
0 new messages