-
Notifications
You must be signed in to change notification settings - Fork 32
Description
Context:
- I have written a stand-alone python application that uses gxpy to import a GDB. I am using the latest version of gxpy.
- I use the geosoft redistributables so the user need not have Viewer or Montaj installed.
- I instruct gxpy to use the redistributables through the GXpy constructor:
GXpy(redist_override=True, redist_dir="C:/path/to/GeosoftRedist"). - Since
user_dir=Noneandtemp_dir=None, gxpy should make its own user and temp directories.
Problem:
The redistributable libraries don't actually use the user_dir and temp_dir that gxpy creates. This culiminates in the following fatal error when constructing the GXpy object:
"Error initializing Geosoft redistributable subsystem. Missing: 'C:\path\to\GeosoftRedist\geosoft.redist' configuration file. Contents should include the user and temp directories on two separate lines.
Workaround:
I get around this by making my own geosoft.redist file with the required directories. I can confirm that the redistributables definitely read the directories in the redist file: if the directories in the redist file don't exist, then I get another (different) error saying so.
Desired Behaviour:
The Geosoft redistributables should not require a geosoft.redist file, and instead use the user_dir and temp_dir generated/provided by gxpy.