File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3636 --clean
3737 --paths src
3838 --collect-all tkinterdnd2
39- src/spass_csv_converter/__main__ .py
39+ scripts/pyinstaller_entry .py
4040
4141 - name : Package release file (macOS)
4242 if : runner.os == 'macOS'
Original file line number Diff line number Diff line change @@ -10,6 +10,6 @@ python3 -m PyInstaller \
1010 --clean \
1111 --paths src \
1212 --collect-all tkinterdnd2 \
13- src/spass_csv_converter/__main__ .py
13+ scripts/pyinstaller_entry .py
1414
1515echo " macOS app created in dist/"
Original file line number Diff line number Diff line change @@ -9,6 +9,6 @@ py -m PyInstaller `
99 -- clean `
1010 -- paths src `
1111 -- collect- all tkinterdnd2 `
12- src / spass_csv_converter / __main__ .py
12+ scripts / pyinstaller_entry .py
1313
1414Write-Host " Windows app created in dist/"
Original file line number Diff line number Diff line change 1+ """PyInstaller entry point.
2+
3+ PyInstaller executes the target file as a top-level script, so the package's
4+ ``__main__.py`` (which uses relative imports) fails with
5+ "attempted relative import with no known parent package" when used directly.
6+ This wrapper imports the package absolutely and delegates to its main().
7+ """
8+ import sys
9+
10+ from spass_csv_converter .__main__ import main
11+
12+ if __name__ == "__main__" :
13+ sys .exit (main ())
You can’t perform that action at this time.
0 commit comments