summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralex.boterolowry <alex.boterolowry@5914aa95-5b3a-0410-a3b5-7b719e7fe9b2>2009-11-13 22:36:43 +0000
committeralex.boterolowry <alex.boterolowry@5914aa95-5b3a-0410-a3b5-7b719e7fe9b2>2009-11-13 22:36:43 +0000
commit1824e5f61f6d8bb4c0feee6406c444aed168d44a (patch)
tree2516c898a2f731301613e257faf8d89d2ff7256e
parentb8407d8322436508f91c9f83f12662002d57c82b (diff)
add .. support
git-svn-id: http://freebase-python.googlecode.com/svn/trunk@225 5914aa95-5b3a-0410-a3b5-7b719e7fe9b2
-rwxr-xr-xfreebase/fcl/fcl.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/freebase/fcl/fcl.py b/freebase/fcl/fcl.py
index 835f0da..769efe5 100755
--- a/freebase/fcl/fcl.py
+++ b/freebase/fcl/fcl.py
@@ -122,6 +122,9 @@ class FclCommandHandler(object):
if path == '' or path == '.':
return self.pwd
+ if path == '..':
+ return '/'.join(self.pwd.split('/')[:-1])
+
return os.path.join(self.pwd, path)