Sunday, June 30, 2013

Add modules by specific path - e.g. for testing

import sys
sys.path.append('..')  # add path to module, in this case the parent directory
 

import some_module

No comments:

Post a Comment