How to run python extension from a .gs script using relative paths?
VictorSavenije
Posts: 32
I have python extension like in: https://geosoftgxdev.atlassian.net/wiki/spaces/GXD93/pages/105775181/Create+a+Menu+to+Run+Python+Extensions
I can run this from the menu in Oasis. I would like to integrate the extension in a .gs script. If I record it's usage into a script, an absolute path is written. However I would like to use relative paths only so I can distribute the script to other PC's. Relative paths are normally possible with for example database file paths.
But when editing the absolute path to the .py extension to something relative such as: "C:\Users\v.savenije\Documents\Geosoft\Desktop Applications\python\myextension.py" -> python\myextension.py
I always get the error:
Unable to find the python\myextension.py Python
This anyone know how to run python extension from a .gs script using relative paths?
I can run this from the menu in Oasis. I would like to integrate the extension in a .gs script. If I record it's usage into a script, an absolute path is written. However I would like to use relative paths only so I can distribute the script to other PC's. Relative paths are normally possible with for example database file paths.
But when editing the absolute path to the .py extension to something relative such as: "C:\Users\v.savenije\Documents\Geosoft\Desktop Applications\python\myextension.py" -> python\myextension.py
I always get the error:
Unable to find the python\myextension.py Python
This anyone know how to run python extension from a .gs script using relative paths?
0
Categories
- All Categories
- Community
- 16 Latest Releases
- 15 Member Spotlight
- 38 Learning
- Products
- Geology
- 535 Leapfrog
- 1 Volsung
- 25 Visible Geology
- Data Management & Collaboration
- 14 MX Deposit
- 13 Central
- 9 Imago
- Geotechnical
- 136 GeoStudio
- Geophysics
- 319 Oasis montaj
- 1 Workbench
- SPIA
- 9 Res2DInv & Res3DInv
- 3 Evo
- 25 GX Developer