Fix for absolute relative path handling
This commit is contained in:
@@ -269,16 +269,14 @@ class bam_session:
|
|||||||
# we should be clever - add the file to a useful location based on some rules
|
# we should be clever - add the file to a useful location based on some rules
|
||||||
# (category, filetype & tags?)
|
# (category, filetype & tags?)
|
||||||
|
|
||||||
# XXX, remap!
|
|
||||||
fn_rel = os.path.relpath(fn_abs, session_rootdir)
|
fn_rel = os.path.relpath(fn_abs, session_rootdir)
|
||||||
|
|
||||||
# TODO(cam)
|
|
||||||
# remap paths of added files
|
# remap paths of added files
|
||||||
if fn_rel.startswith("_"):
|
if fn_rel.startswith("_"):
|
||||||
|
fn_rel = fn_rel[1:]
|
||||||
|
else:
|
||||||
if paths_remap_relbase:
|
if paths_remap_relbase:
|
||||||
fn_rel = os.path.join(paths_remap_relbase, fn_rel[1:])
|
fn_rel = os.path.join(paths_remap_relbase, fn_rel)
|
||||||
else:
|
|
||||||
fn_rel = fn_rel[1:]
|
|
||||||
|
|
||||||
paths_add[fn_rel] = fn_abs
|
paths_add[fn_rel] = fn_abs
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user