refactor: Separate venvs into subdirectories for Flatpak and host#237
refactor: Separate venvs into subdirectories for Flatpak and host#237
Conversation
10ea84a to
54398dc
Compare
|
Seems reasonable, you tried to compile then. |
|
I can add logic to migrate the 'old' venv to the new structure, yes. But I'd rather not have it in a flat structure. Nested is better, because it means the launcher dir is tidier. I will add logic in a later commit. |
bfdaee1 to
d01cf67
Compare
|
Added a migration function. |
d01cf67 to
59b7263
Compare
|
Looks pretty good, how ready is this now. |
Should be fairly ready. I'll test this weekend, as I'm free. |
76e54ef to
2a3d1f5
Compare
To avoid ELF binary conflicts between Flatpak and host environments, virtual environments are now created in separate subdirectories: - wemod_venv/flatpak: For Flatpak sandbox environment - wemod_venv/host: For host system environment This ensures that binaries compiled for one environment don't get executed in the other, preventing "wrong ELF class" errors. Changes: - mk_venv(): Creates venv in appropriate subdirectory based on environment - venv_manager(): Checks for existing venv in correct subdirectory - check_flatpak(): Creates host venv in wemod_venv/host with dependencies - Adds venv detection to prevent infinite rerun loops
2a3d1f5 to
48f72fb
Compare
|
Should we move a old venv, or just delete it or do nothing, what do you think. |
|
Also PR confirmed working on my end. |
|
I think it'd be OK to recreate it. There's no harm in that.
…On 01.05.2026 01:52, Marvin1099 wrote:
marvin1099 left a comment (DeckCheatz/wemod-launcher#237)
Should we move a old venv, or just delete it or do nothing, what do you think.
--
Reply to this email directly or view it on GitHub:
#237 (comment)
You are receiving this because you authored the thread.
Message ID: ***@***.***>
|
|
OK.
I've identified a bug on CachyOS at least, where the `host` folder is
repeated at least ten times in the path, so I need to fix that.
…On 01.05.2026 01:57, Marvin1099 wrote:
marvin1099 left a comment (DeckCheatz/wemod-launcher#237)
Also PR confirmed working on my end.
--
Reply to this email directly or view it on GitHub:
#237 (comment)
You are receiving this because you authored the thread.
Message ID: ***@***.***>
|
To avoid ELF binary conflicts between Flatpak and host environments, virtual environments are now created in separate subdirectories:
This ensures that binaries compiled for one environment don't get executed in the other, preventing "wrong ELF class" errors.
Changes: