jdblair / sunspec

Sunspec Reference Implementation and Test Tool
Other
20 stars 5 forks source link

create default search path for device model files #3

Closed jdblair closed 12 years ago

jdblair commented 12 years ago

Instead of being required to specify a device model file every time the suns tool is invoked it should contain a default search path and look for model files itself.

It should search for files ending in "model" which will be in "slang" format, as well as files ending in "xml" which should be in model definition xml format.

jdblair commented 12 years ago

This is implemented.

Default search path for models is /usr/local/lib/suns/models

It can be modified by setting the SUNS_MODELPATH environment variable. You can still use the -m and -x options to load specific model files.