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? |
|
Settings contained in I know about these variables:
Is there anything else? |
|
I moved these from acedGetEnv to GetEnvironmentVariable I removed legacy PyRx.ini I used for debugging would you like a build? |
|
I think the |
|
I noticed that |
|
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: |
|
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. |
|
I don’t see many things that are of interest to users in PyConfig |
|
@CEXT-Dan, so you don't like |
|
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 |
|
Which folder are we going to use for the config, On load |
|
I think the format should be categorized, example |
|
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 |
|
PyRx/PyRxCore/PyRxAppSettings.cpp Lines 12 to 51 in e7055b7 If I understand correctly, after |
|
i did see a warning running the tests |
|
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 |
@CEXT-Dan , what do you think about this? Regarding PYLOAD/PYRELOAD |
|
Missing pydantic-settings Also I get |
|
My objections to moving PYLOAD/PYRELOAD are.
|
|
this is my onload file. it's copied and renamed with visual studio |
|
seems backwards |
|
temporarily I restored C++ pyrx_onload to give more time on this task |
|
c63a1ee |
|
Not sure I understand this |
|
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" |

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.inifile with settings such asPYRX_DISABLE_ONLOADorPYRX_LOAD_REPLonload.pyfile that will be loaded independently of thepyrx_onload.pyfile located in the local environment search path.All of this could be handled by the
_host_init.pymodule.Issue: #289
All reactions