Using abspath instead of realpath so it does not dereference symlinks

This commit is contained in:
David Sveningsson 2011-01-19 21:18:46 +01:00
parent 3ba5c4200b
commit fe126bf3ea

View File

@ -33,7 +33,7 @@ def run(template_file, doc, mode='template'):
log.info(" %s", os.path.realpath(template_dir))
logged_modes.append(mode)
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
shellpath = os.path.join(sys.path[0],'planet','shell')