From fe126bf3ea38538683e13e41e50af7a7fd7ad7e1 Mon Sep 17 00:00:00 2001 From: David Sveningsson Date: Wed, 19 Jan 2011 21:18:46 +0100 Subject: [PATCH] Using abspath instead of realpath so it does not dereference symlinks --- planet/shell/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/planet/shell/__init__.py b/planet/shell/__init__.py index 49b8557..a65b121 100644 --- a/planet/shell/__init__.py +++ b/planet/shell/__init__.py @@ -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')