How to run python extension from a .gs script using relative paths?
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?
Tagged:
0
Categories
- 711 All Categories
- 113 Products & Software
- 11 Seequent
- 191 Leapfrog
- 339 Geosoft
- 10 GeoStudio
- 8 Developers
- 1 Seequent Evo APIs
- 160 GX Developer
- Early Access Programmes
- 1 Oasis montaj Field EAP