1

I am trying import a module called arnold but am having some trouble. I appened my python path with

:C:\solidangle\mtoadeploy\2017\scripts\arnold

When I print out my python path with

 os.environ['PYTHONPATH'].split(os.pathsep)

I get:

['C:\\Program Files\\Autodesk\\Maya2016\\Python\\Lib\\site-packages:C:\\solidangle\\mtoadeploy\\2017\\scripts\\arnold']

I also tried to remove the arnold from the path since there are other folders there. No dice. I also tried assigning it to my path variable. No dice there as well.

Within the arnold dir there is an init file importing all the modules in the folder.

Anything i'm missing here?

2
  • How exactly did you append your PYTHONPATH? I think there may be the problem Commented Feb 18, 2017 at 19:17
  • I went to my system properties->Environment Variables->Selected the System Variable-> then clicked edit. For the Path variable, i created a new row in the UI and added the path. For the PYTHONPATH I clicked edit and appened : then the path. Commented Feb 18, 2017 at 19:22

1 Answer 1

1

It seems that you use the wrong path separator. On Windows you should use ;, not : to separate several paths.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.