summaryrefslogtreecommitdiff
path: root/freebase/fcl/fcl.py
diff options
context:
space:
mode:
Diffstat (limited to 'freebase/fcl/fcl.py')
-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)