We will be performing a major infrastructure and web site ugprades on Friday, September 27th 8:00 am - 5:00 pm MST (UTC -7).

The website will be down during that time.

Python API site.addsitedir()??

  • cdavis
  • Topic Author
More
19 Mar 2019 19:53 #6709 by cdavis
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
More
20 Mar 2019 00: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.

Please Log in or Create an account to join the conversation.

Moderators: pgilman
Powered by Kunena Forum