
import os
import sys
import maya.cmds as cmds

modulePath = cmds.getModulePath(moduleName='tornado_field')

# get fullpath of current py file
this_file_path = modulePath + '/scripts/userSetup.py';
this_file_path = this_file_path.replace('\\','/')
print("this is: "+this_file_path);

# add common module to python path
commonPath = modulePath+'/../common';
sys.path.insert(0, commonPath);

use "scripts/userSetup.py" to add "common/mymagicbox" module