Hey Gang,

I've tried for a few hours to get my "readme.txt" to populate when I hit a 
ktinter button. All works fine in PyCharm and even standard Dist are no 
problem. The issue arises when I try --onefile.

Here's my example code: 

pyinstaller --add-data "src/*.jar;src/" --add-data "src/readme.txt;src/" 
--onefile --windowed main.py

I checked main.py and wrote this: 

if getattr(sys, 'frozen', False):
# running in a PyInstaller bundle
src_path = os.path.join(sys._MEIPASS, 'src')
readme_path = os.path.join(sys._MEIPASS, 'src', 'readme.txt')

I tried both OS X and Windows 10 and same result. Any advice? Thanks much.


-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pyinstaller+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/006ffa95-8492-441e-ba57-1fde3d2a72d4n%40googlegroups.com.

Reply via email to