Skip to content

Conversation

@ceanwang
Copy link
Contributor

When start OpenRadioss_gui.py with a 3rd party code, ./ will points to that start code. Then gui_def.fy has to check the location.

When start OpenRadioss_gui.py with a 3rd party code, ./ points to that start code.
Then gui_def.fy has to check the location.
@ceanwang
Copy link
Contributor Author

ceanwang commented Jan 15, 2025

I got the same result with:

import pathlib tPath=pathlib.Path(__file__).absolute() print (tPath) tPath=pathlib.Path(__file__).resolve().absolute() print (tPath)

Yes, tPath.parent is better.
It then could be changed to:
tPath=pathlib.Path(__file__).absolute() fPath=str(tPath.parent)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants