indygreg / indygreg/PyOxidizer
Adding local folder to exe
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 6.2k
- Forks
- 256
- PR merge metrics
- No merged PRs in 30d
Description
I have a local sub folder in my project with `actions/actions.py`. I would like to add this to the binary but it seems I'm failing. I tried:
~~~
exe.add_python_resource(exe.make_python_module_source(name="actions", source='actions/actions.py', is_package=True))
~~~
and:
~~~
exe.add_python_resources(exe.read_package_root(path=".", packages=['actions']))
~~~
but this does not work. I cannot find the `actions.py` anywhere in the `lib` folder (I'm using `policy.resources_location_fallback = "filesystem-relative:lib"`, nothing else seems to work). How to package this?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the local actions/actions.py module and the exe.add_python_resource(s) calls shown in the issue, then inspect how resources are placed in the lib folder with filesystem-relative:lib. Done means the built binary packages the actions module and the application can locate it from that lib location.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, rust
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100