From 76480ec37f43c6caa64eacbed47a5c7185d1fbfa Mon Sep 17 00:00:00 2001 From: Tal Leming Date: Wed, 8 Jun 2016 10:31:21 -0400 Subject: [PATCH] fs.path not self._fs.path. --- Lib/ufoLib/filesystem.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Lib/ufoLib/filesystem.py b/Lib/ufoLib/filesystem.py index bb5745a03..bb8aa790b 100644 --- a/Lib/ufoLib/filesystem.py +++ b/Lib/ufoLib/filesystem.py @@ -5,6 +5,7 @@ import zipfile haveFS = False try: + import fs from fs.osfs import OSFS from fs.zipfs import ZipFS, ZipOpenError haveFS = True @@ -153,16 +154,16 @@ class FileSystem(object): # ----------------- def joinPath(self, *parts): - return self._fs.path.join(*parts) + return fs.path.join(*parts) def splitPath(self, path): - return self._fs.path.split(path) + return fs.path.split(path) def directoryName(self, path): - return self._fs.path.dirname(path) + return fs.path.dirname(path) def relativePath(self, path, start): - return self._fs.relativefrom(path, start) + return fs.relativefrom(path, start) # --------- # Existence