NREL / htem-api-examples

Examples of usage of the HTEM DB API
http://htem.nrel.gov
Other
8 stars 5 forks source link

Fixing File Paths #9

Closed meschw04 closed 7 years ago

meschw04 commented 7 years ago

For some reason, when I need to import the library.py and sample.py files, I have to go through sys and specify the full path. This isn't really suitable for the average user, who would have to go back and change these to suit their own device. Caleb, do you know how one would go about changing this? I tried abbreviating the file path to "../htem-api-examples/lib" and the sys command executed, but the files still wouldn't import in the traditional manner. Thoughts? Thanks! :)

somerandomsequence commented 7 years ago

Use relative paths, e.g.,

sys.path.append('..\lib')
meschw04 commented 7 years ago

Done.