From 2703f2ffcdc1078adf8a17a9aaa279eb0ff3c1be Mon Sep 17 00:00:00 2001 From: datawhores Date: Wed, 22 Nov 2023 21:37:24 -0600 Subject: [PATCH] change pyinstall entry --- .github/workflows/commit_bundler.yml | 4 ++-- ofscraper/utils/args.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/commit_bundler.yml b/.github/workflows/commit_bundler.yml index 39e7fd8c5..492335f97 100644 --- a/.github/workflows/commit_bundler.yml +++ b/.github/workflows/commit_bundler.yml @@ -71,7 +71,7 @@ jobs: /root/.local/bin/poetry install /root/.local/bin/poetry add pyinstaller==5.13.0 echo "install run pyinstaller" - /root/.local/bin/poetry run pyinstaller .venv/bin/ofscraper --collect-submodules application --name "ofscraper_linux_${{ steps.commit.outputs.short}}" --onefile + /root/.local/bin/poetry run pyinstaller /home/runner/work/OF-Scraper/OF-Scraper/ofscraper/__main__.py --collect-submodules application --name "ofscraper_linux_${{ steps.commit.outputs.short}}" --onefile - name: upload one file uses: actions/upload-artifact@v3 @@ -91,7 +91,7 @@ jobs: /root/.local/bin/poetry install --with build /root/.local/bin/poetry install /root/.local/bin/poetry add pyinstaller==5.13.0 - /root/.local/bin/poetry run pyinstaller .venv/bin/ofscraper --collect-submodules application --name "ofscraper_linux_${{ steps.commit.outputs.short}}" --onefile + /root/.local/bin/poetry run pyinstaller /home/runner/work/OF-Scraper/OF-Scraper/ofscraper/__main__.py --collect-submodules application --name "ofscraper_linux_${{ steps.commit.outputs.short}}" --onefile zip -r "dist/ofscraper_linux_${{steps.commit.outputs.short}}.zip" "dist/ofscraper_linux_${{steps.commit.outputs.short}}" - name: upload one file uses: actions/upload-artifact@v3 diff --git a/ofscraper/utils/args.py b/ofscraper/utils/args.py index f153926a9..19ae7e302 100644 --- a/ofscraper/utils/args.py +++ b/ofscraper/utils/args.py @@ -233,6 +233,7 @@ def create_parser(input=None): def getargs(input=None): global args + import multiprocessing print(multiprocessing.parent_process()) if args and input==None: return args