Importing opensees.pyd into python script

Forum for asking and answering questions related to use of the OpenSeesPy module

Moderators: silvia, selimgunay, Moderators

Post Reply
QuaziS
Posts: 3
Joined: Wed May 18, 2016 8:57 am
Location: Stamford University Bangladesh

Importing opensees.pyd into python script

Post by QuaziS »

Hi,

Following the instruction video by Prof. Scott, I could compile the openseespy. I am facing the problem of how to import the opensees.pyd into my python script.

Can you please give some guidance?
mhscott
Posts: 880
Joined: Tue Jul 06, 2004 3:38 pm
Location: Corvallis, Oregon USA
Contact:

Re: Importing opensees.pyd into python script

Post by mhscott »

import opensees as ops

This should work in your script if you have opensees.pyd in your working directory or path.
QuaziS
Posts: 3
Joined: Wed May 18, 2016 8:57 am
Location: Stamford University Bangladesh

Re: Importing opensees.pyd into python script

Post by QuaziS »

Dear Prof. Scott

Thank you very much for your guidance. I could import and successfully run the module.
[Both were in the same directory].
mhscott
Posts: 880
Joined: Tue Jul 06, 2004 3:38 pm
Location: Corvallis, Oregon USA
Contact:

Re: Importing opensees.pyd into python script

Post by mhscott »

Thanks for the coffee :)
Post Reply