summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Sveningsson <ext@sidvind.com>2011-01-19 21:18:46 +0100
committerDavid Sveningsson <ext@sidvind.com>2011-01-19 21:18:46 +0100
commitfe126bf3ea38538683e13e41e50af7a7fd7ad7e1 (patch)
treedc6b6c131806e846c8a41add532c45c6ae48d687
parent3ba5c4200be0b465e34108ed5d4dcba7a1e77d3d (diff)
downloadplanetpixels-fe126bf3ea38538683e13e41e50af7a7fd7ad7e1.tar.gz
planetpixels-fe126bf3ea38538683e13e41e50af7a7fd7ad7e1.tar.bz2
Using abspath instead of realpath so it does not dereference symlinks
-rw-r--r--planet/shell/__init__.py2
1 files changed, 1 insertions, 1 deletions
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')