Previous Thread  Next Thread

chat icon 2.57 RC1 - sys.path not Initializing Properly

supergra

Posted: Sat Apr 02, 2011 1:53 am
Joined: 17 Jun 2010
Posts: 2
Under User Preferences -> File -> Scripts Path, I set a path to my personal folder of Blender scripts and libraries which I want to be easily imported.

In 2.56, after startup, typing

Code:
import sys
sys.path


returned a list of paths which included my scripts path, so that I could simply type

Code:
import my_Library


In the 2.57 RC1 (R35899), this no longer happens. Meaning I have to explicitly type:

Code:
import sys
sys.path.append('Path to my scripts folder')
import my_Library


Much more tedious. Is this intentional or a bug?
Reply with quote


supergra

Posted: Sat Apr 02, 2011 10:54 pm
Joined: 17 Jun 2010
Posts: 2
By the way, I have verified this on four separate builds:

1) Ubuntu 10.10 64-bit
2) My own build on a Redhat 5.6 machine
3) Mac OSX Snow Leopard
4) Windows 7
Reply with quote


 
Jump to:  
Powered by phpBB © 2001, 2005 phpBB Group