Replies: 25 comments 97 replies
-
Okay, though I feel onload.py by itself is ambiguous. maybe something like pyrx_oninit or pyrx_on_user_init, pyrx_user_init? |
Beta Was this translation helpful? Give feedback.
-
Settings contained in I know about these variables:
Is there anything else? |
Beta Was this translation helpful? Give feedback.
-
I moved these from acedGetEnv to GetEnvironmentVariable I removed legacy PyRx.ini I used for debugging would you like a build? |
Beta Was this translation helpful? Give feedback.
-
I think the |
Beta Was this translation helpful? Give feedback.
-
I noticed that |
Beta Was this translation helpful? Give feedback.
-
I added settings ( There are three levels of loading the
By default, all files are loaded in the order listed above (one from each level). Loading from pyrx.config import get_pyrx_settings, set_pyrx_settings
s = get_pyrx_settings()
s.disable_onload = True
set_pyrx_settings(s) Settings are retrieved before loading each level, so changes to the settings introduced at a given level will affect the loading of files from subsequent levels. To load The current implementation is incomplete and is intended for testing purposes only. For example, there is no direct way to reload To display settings do: |
Beta Was this translation helpful? Give feedback.
-
I’m not sure I fully understand pyrx_onload.py, the important thing is that the user’s version is loaded with the highest priority. |
Beta Was this translation helpful? Give feedback.
-
I don’t see many things that are of interest to users in PyConfig |
Beta Was this translation helpful? Give feedback.
-
@CEXT-Dan, so you don't like |
Beta Was this translation helpful? Give feedback.
-
In my mind, I would like to see something cool, for example, we can add a tab in the options dialog. We wouldn’t need any INI or config files, and it’s all accessible from an interface the users are used to |
Beta Was this translation helpful? Give feedback.
-
Which folder are we going to use for the config, On load |
Beta Was this translation helpful? Give feedback.
-
I think the format should be categorized, example
|
Beta Was this translation helpful? Give feedback.
-
LOG is deferred; it’s in the loader module, I don’t want to add implementation to that project just yet. optimization_level can be overridden with text flags |
Beta Was this translation helpful? Give feedback.
-
PyRx/PyRxCore/PyRxAppSettings.cpp Lines 12 to 51 in e7055b7 If I understand correctly, after |
Beta Was this translation helpful? Give feedback.
-
i did see a warning running the tests |
Beta Was this translation helpful? Give feedback.
-
What steps are needed to get a basic pyrx_onload working? If its not ready yet, that’s fine, though I’ll need restore the C++ version so I can make releases |
Beta Was this translation helpful? Give feedback.
-
@CEXT-Dan , what do you think about this? Regarding PYLOAD/PYRELOAD |
Beta Was this translation helpful? Give feedback.
-
Missing pydantic-settings Also I get
|
Beta Was this translation helpful? Give feedback.
-
My objections to moving PYLOAD/PYRELOAD are.
|
Beta Was this translation helpful? Give feedback.
-
this is my onload file. it's copied and renamed with visual studio |
Beta Was this translation helpful? Give feedback.
-
seems backwards |
Beta Was this translation helpful? Give feedback.
-
temporarily I restored C++ pyrx_onload to give more time on this task |
Beta Was this translation helpful? Give feedback.
-
c63a1ee |
Beta Was this translation helpful? Give feedback.
-
Not sure I understand this
|
Beta Was this translation helpful? Give feedback.
-
I would like to add the ability to set the application window name in the user configuration. I often have several instances of ZWCAD open, each for a different pyrx-based project, and then I don't know which instance is for which project. Ap.Application.wxApp().TopWindow.Title = "Project 1" |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I think it would be a good idea to introduce per-user configuration (in addition to per-environment):
pyrx.ini
file with settings such asPYRX_DISABLE_ONLOAD
orPYRX_LOAD_REPL
onload.py
file that will be loaded independently of thepyrx_onload.py
file located in the local environment search path.All of this could be handled by the
_host_init.py
module.Issue: #289
Beta Was this translation helpful? Give feedback.
All reactions