re-arrange modules, preparing for python-package-index
This commit is contained in:
@@ -27,7 +27,7 @@ Environment vars:
|
||||
# Ensure module path
|
||||
import os
|
||||
import sys
|
||||
path = os.path.normpath(os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", "..", "..", "modules"))
|
||||
path = os.path.normpath(os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", "..", ".."))
|
||||
if path not in sys.path:
|
||||
sys.path.append(path)
|
||||
del os, sys, path
|
||||
|
@@ -295,7 +295,7 @@ class FileAPI(Resource):
|
||||
we want all paths to be relative to this so we don't get server path included.
|
||||
"""
|
||||
import os
|
||||
import blendfile_pack
|
||||
from bam.blend import blendfile_pack
|
||||
|
||||
assert(os.path.exists(filepath) and not os.path.isdir(filepath))
|
||||
log.info(" Source path: %r" % filepath)
|
||||
@@ -324,7 +324,7 @@ class FileAPI(Resource):
|
||||
return
|
||||
else:
|
||||
# non blend-file
|
||||
from bam_utils.system import uuid_from_file
|
||||
from bam.utils.system import uuid_from_file
|
||||
paths_uuid[os.path.basename(filepath)] = uuid_from_file(filepath)
|
||||
del uuid_from_file
|
||||
|
||||
|
Reference in New Issue
Block a user