NREL / gdx-pandas

Python interface to read and write GAMS GDX files using pandas.DataFrames as the intermediate data format.
BSD 3-Clause "New" or "Revised" License
43 stars 15 forks source link

Should GamsDirFinder prefer where/which gams to environment variable values? #77

Open elainethale opened 4 years ago

elainethale commented 4 years ago

Currently GamsDirFinder.__find_gams looks for GAMS in this order:

Should where/which gams come first? This would change behavior/break interface, but might be more aligned with expected behavior, in that GamsDirFinder would find the version of GAMS that is also found by the command line by default.

jebob commented 3 years ago

I think it is a good idea. I trust PATH more than GAMSDIR.

jebob commented 3 years ago

Should also consider speed, subprocess into where/which might be slower.

EDIT 2023-05-17: I no longer think that this will be a significant slowdown compared to anything else.