[Bf-committers] Load an external python file

Dan Eicher dan at trollwerks.org
Sun Dec 2 19:49:04 CET 2012


The easiest way would be to put your scripts in a directory and add a
__init_.py then:

import sys
sys.path.append('/path/to/cycles/cycles_module')
from cycles_module import utils

Fedora, in their infinite wisdom, doesn't add
/usr/local/lib/python2.7/site-packages/ to they python path so I have
to do this quite often.

Dan


More information about the Bf-committers mailing list