PyAPI: minor path init simplification
This commit is contained in:
@@ -48,11 +48,11 @@ def main():
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Possibly temp. addons path
|
# Possibly temp. addons path
|
||||||
from os.path import join, dirname, normpath
|
from os.path import join, dirname
|
||||||
sys.path.append(normpath(join(dirname(__file__),
|
sys.path.extend([
|
||||||
"..", "..", "addons", "modules")))
|
join(dirname(dirname(dirname(__file__))), "addons", "modules"),
|
||||||
sys.path.append(join(utils.user_resource('SCRIPTS'),
|
join(utils.user_resource('SCRIPTS'), "addons", "modules"),
|
||||||
"addons", "modules"))
|
])
|
||||||
|
|
||||||
# fake module to allow:
|
# fake module to allow:
|
||||||
# from bpy.types import Panel
|
# from bpy.types import Panel
|
||||||
|
Reference in New Issue
Block a user