Hi, the path in the following file is resolved to something like
Users/username/Desktop/program.app/Contents/MacOS/pybo/textunits/../resources/bo_uni_table.csv
instead of
Users/username/Desktop/program.app/Contents/MacOS/pybo/resources/bo_uni_table.csv
after pybo is frozen into my program using PyInstaller on macOS, crashing the program on startup
This issue occurs on LInux as well (tested on Ubuntu 16.04), but does not happen on Windows.
I solved this issue by modifying this line before freezing pybo into my program:
table_path = Path(__file__).parent.parent / "resources/bo_uni_table.csv"
So is it okay for pybo to modify its codebase to help freezing on macOS and Linux?
Hi, the path in the following file is resolved to something like
Users/username/Desktop/program.app/Contents/MacOS/pybo/textunits/../resources/bo_uni_table.csv
instead ofUsers/username/Desktop/program.app/Contents/MacOS/pybo/resources/bo_uni_table.csv
after pybo is frozen into my program using PyInstaller on macOS, crashing the program on startuphttps://github.com/Esukhia/pybo/blob/81bfeb19311d1dd44f9bbb31d891155353377b07/pybo/textunits/charcategories.py#L9
This issue occurs on LInux as well (tested on Ubuntu 16.04), but does not happen on Windows.
I solved this issue by modifying this line before freezing pybo into my program:
table_path = Path(__file__).parent.parent / "resources/bo_uni_table.csv"
So is it okay for pybo to modify its codebase to help freezing on macOS and Linux?