Open tom-a-horrocks opened 3 months ago
GXDEV-43
@tom-a-horrocks the paths from geosoft.redist
will be scanned but will later be overwritten with whatever paths you define or don't define(temp folders) in the GXpy
constructor. This is an artifact of the way redist works for other languages (.NET, C#, GXC) where there is no mechanism for specifying these paths and the system has to rely on the geosoft.redist
.
As a workaround until a fix can be done, you can create a geosoft.redist
file with valid paths. These are used for initialization but will be overwritten with the constructor parameters.
Context:
GXpy(redist_override=True, redist_dir="C:/path/to/GeosoftRedist")
.user_dir=None
andtemp_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:
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 theuser_dir
andtemp_dir
generated/provided by gxpy.