Skip to content

Commit

Permalink
another try
Browse files Browse the repository at this point in the history
  • Loading branch information
zarath committed Mar 3, 2024
1 parent 617d0c9 commit 5275763
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
-n nanovna-saver \
--add-data "build/lib/python3.*/site-packages/PyQt6/sip.*.so:PyQt6/sip.so" \
--add-data "build/lib/python3.*/site-packages/PyQt6/Qt6:PyQt6/Qt6" \
nanovna-saver.py
src/nanovna-saver.py
- name: Archive production artifacts
uses: actions/upload-artifact@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release_win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
-n nanovna-saver.exe `
--add-data "venv/Lib/site-packages/PyQt6/sip.cp*-win_amd64.pyd;PyQt6/sip.pyd" `
--add-data "venv/Lib/site-packages/PyQt6/Qt6;PyQt6/Qt6" `
nanovna-saver.py
src/nanovna-saver.py
- name: Archive production artifacts
uses: actions/upload-artifact@v1
with:
Expand Down
16 changes: 2 additions & 14 deletions nanovna-saver.py → src/nanovna-saver.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,7 @@
# This launcher is ignored by setuptools. Its only purpose is direct
# execution from a source tree.

import os.path
import sys

# Ignore the current working directory.
src = os.path.join(os.path.dirname(__file__), "src")

if os.path.exists(src):
sys.path.insert(0, src)

# pylint: disable-next=wrong-import-position
import NanoVNASaver.__main__

# The traditional test does not make sense here.
assert __name__ == "__main__"

NanoVNASaver.__main__.main()
if __name__ == '__main__':
NanoVNASaver.__main__.main()

0 comments on commit 5275763

Please sign in to comment.