Renamed module tracer → trace

This is consistent with the other module names.
This commit is contained in:
Sybren A. Stüvel
2018-03-09 10:02:44 +01:00
parent e8f41f2735
commit 632d01334c
12 changed files with 14 additions and 14 deletions
+3 -3
View File
@@ -5,7 +5,7 @@ import logging
import pathlib
import sys
from blender_asset_tracer import tracer
from blender_asset_tracer import trace
from . import common
log = logging.getLogger(__name__)
@@ -37,7 +37,7 @@ def report_text(bpath):
last_reported_bfile = None
shorten = functools.partial(common.shorten, pathlib.Path.cwd())
for usage in tracer.deps(bpath):
for usage in trace.deps(bpath):
filepath = usage.block.bfile.filepath.absolute()
if filepath != last_reported_bfile:
print(shorten(filepath))
@@ -68,7 +68,7 @@ def report_json(bpath):
# Mapping from blend file to its dependencies.
report = collections.defaultdict(set)
for usage in tracer.deps(bpath):
for usage in trace.deps(bpath):
filepath = usage.block.bfile.filepath.absolute()
for assetpath in usage.files():
assetpath = assetpath.resolve()
+3 -3
View File
@@ -5,9 +5,9 @@ import logging
import pathlib
import typing
from blender_asset_tracer import tracer, bpathlib, blendfile
from blender_asset_tracer import trace, bpathlib, blendfile
from blender_asset_tracer.cli import common
from blender_asset_tracer.tracer import result
from blender_asset_tracer.trace import result
from . import queued_copy
log = logging.getLogger(__name__)
@@ -78,7 +78,7 @@ class Packer:
act.new_path = bfile_pp
new_location_paths = set()
for usage in tracer.deps(self.blendfile):
for usage in trace.deps(self.blendfile):
# Needing rewriting is not a per-asset thing, but a per-asset-per-
# blendfile thing, since different blendfiles can refer to it in
# different ways (for example with relative and absolute paths).