- Posts: 2
Python API site.addsitedir()??
- cdavis
- Topic Author
Less
More
19 Mar 2019 13:53 #6709
by cdavis
I'm trying to get the Python API running, but I'm not sure what I need to change in the code below. I'm using the latest version, though I'm not able to find the path shown below?
# Use site.addsitedir() to set the path to the SAM SDK API. Set path to the python directory.
site.addsitedir('/Applications/sam-sdk-2015-6-30-r3/languages/python/')
Python API site.addsitedir()?? was created by cdavis
I'm trying to get the Python API running, but I'm not sure what I need to change in the code below. I'm using the latest version, though I'm not able to find the path shown below?
# Use site.addsitedir() to set the path to the SAM SDK API. Set path to the python directory.
site.addsitedir('/Applications/sam-sdk-2015-6-30-r3/languages/python/')
Please Log in or Create an account to join the conversation.
- pgilman
Less
More
- Posts: 5423
19 Mar 2019 18:06 #6710
by pgilman
Replied by pgilman on topic Python API site.addsitedir()??
Hello,
It looks like you are using an old version of the SAM SDK. I would recommend using the current version of SAM. Its code generator makes it easier to get started working with Python scripts.
Please see the SAM SDK page for more information:
sam.nrel.gov/sdk
Best regards,
Paul.
It looks like you are using an old version of the SAM SDK. I would recommend using the current version of SAM. Its code generator makes it easier to get started working with Python scripts.
Please see the SAM SDK page for more information:
sam.nrel.gov/sdk
Best regards,
Paul.
Please Log in or Create an account to join the conversation.
Moderators: pgilman