Using abspath instead of realpath so it does not dereference symlinks
This commit is contained in:
parent
3ba5c4200b
commit
fe126bf3ea
@ -33,7 +33,7 @@ def run(template_file, doc, mode='template'):
|
|||||||
log.info(" %s", os.path.realpath(template_dir))
|
log.info(" %s", os.path.realpath(template_dir))
|
||||||
logged_modes.append(mode)
|
logged_modes.append(mode)
|
||||||
return
|
return
|
||||||
template_resolved = os.path.realpath(template_resolved)
|
template_resolved = os.path.abspath(template_resolved)
|
||||||
|
|
||||||
# Add shell directory to the path, if not already there
|
# Add shell directory to the path, if not already there
|
||||||
shellpath = os.path.join(sys.path[0],'planet','shell')
|
shellpath = os.path.join(sys.path[0],'planet','shell')
|
||||||
|
Loading…
Reference in New Issue
Block a user