Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 4125

Adding local packages to Python scripts

$
0
0

Hi All,

I am attempting to import a .py file to access functions. It works if the file is in the same folder, but I want all my libraries in a separate folder.

The following page recommends using the # env option, but I can’t get this to work.

env: C:/Users/smthspce/CodeRepos/PersonalRepos/smthspce_RhinoPython/00_Libraries/

import MathLibrary

It says "No module named ‘MathLibrary’

Has anyone else had success with this, or has an alternative approach?

Thanks
Chris

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4125