e-lie / renardo

Livecoding music with simple Python code (Modernized FoxDot Fork)
https://renardo.org
Other
36 stars 3 forks source link

startup.py file not loaded on startup #2

Open titouan-loiseau opened 8 months ago

titouan-loiseau commented 8 months ago

Issue

When starting renardo, the lib does not load the startup.py file, due to a wrong relative path setting.

Error

Warning: '/home/user/.local/share/pipx/venvs/renardo/lib/python3.11/site-packages/renardo_lib/lib/Custom/startup.py' startup file not found.

Expected behaviour

Loading the custom file in renardo_lib/Custom/startup.py

Fix

Editing the file renardo_lib/Settings/__init__.py at the line 43 (remove the "/lib"):

FOXDOT_STARTUP_PATH = os.path.realpath(FOXDOT_ROOT + "/Custom/startup.py")

Unsure if there is a more elegant way to do this, but this is useful for temporary fixing the issue

EDIT: typo

e-lie commented 8 months ago

Definitively tackling this soon !