Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to declare folder dependencies #148

Open
NevermindNilas opened this issue Jul 29, 2024 · 0 comments
Open

How to declare folder dependencies #148

NevermindNilas opened this issue Jul 29, 2024 · 0 comments

Comments

@NevermindNilas
Copy link

NevermindNilas commented Jul 29, 2024

Hi,

I have this file system / folder system setup

main_folder/
├─ src/
│ ├─ utils/
│ ├─ script.py
│ ├─ script2.py
│ ├─ script3.py
├─ main.py

What flag should be used in order to tell pyapp that the subfolder src is also needed when packaging?
I am using the following setup to create the .exe

@echo off
set PYAPP_PROJECT_DEPENDENCY_FILE=G:\TheAnimeScripter\requirements-windows.txt
set PYAPP_EXEC_SCRIPT=G:\TheAnimeScripter\main.py
set PYAPP_PYTHON_VERSION=3.11
set PYAPP_PROJECT_NAME=tas
set PYAPP_PROJECT_VERSION=1.9.1
set PYAPP_EXPOSE_ALL_COMMANDS=true
set PYAPP_EXE_NAME=TheAnimeScripter


cargo build --release

And I get the following import errors

G:\pyapp-v0.22.0\target\release  .\pyapp.exe
Traceback (most recent call last):
  File "C:\Users\nilas\AppData\Local\pyapp\cache\scripts\327278503990150853\main.py", line 30, in <module>
    from src.argumentsChecker import argumentChecker
ModuleNotFoundError: No module named 'src'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant