I have a strange behaviour for pyunpack, a package for unpacking, inside an executable.
I want to do the following thing:
I have a .7z type of file whose end
The output of print(abspath("."))
when running directly in python is:
C:\Users\myname\eclipse-workspace-tms\test_unzip_exe
While running with pyinstaller is:
C:\Users\myname\eclipse-workspace-tms\test_unzip_exe\dist\test
Thus, the archive is not extracted in the dist\test
folder.
Fix this by setting path
to return value of abspath(".")
instead of hard-coding it to C:\Users\myname\eclipse-workspace-tms\test_unzip_exe