This commit is contained in:
parent
4466ee6172
commit
fe26bd1727
@ -38,7 +38,7 @@ class Executor:
|
|||||||
if dirName == "..":
|
if dirName == "..":
|
||||||
p = Path(os.path.join(self.baseDir, self.currentDirectory))
|
p = Path(os.path.join(self.baseDir, self.currentDirectory))
|
||||||
parentpath = p.parent
|
parentpath = p.parent
|
||||||
if str(parentpath) == self.baseDir:
|
if (str(parentpath) + os.path.sep)== self.baseDir:
|
||||||
return self.currentDirectory
|
return self.currentDirectory
|
||||||
else:
|
else:
|
||||||
newpath = str(parentpath).replace(self.baseDir,'')
|
newpath = str(parentpath).replace(self.baseDir,'')
|
||||||
|
Loading…
Reference in New Issue
Block a user