Changeset 76119f296b20…
Parent f2495600a9fa…
by
Changes to one file · Browse files at 76119f296b20 Showing diff from parent f2495600a9fa Diff from another changeset...
@@ -161,7 +161,11 @@ cwd = self.folder
elif self.fnames:
f = self.fnames[0]
- cwd = os.path.isdir(f) and f or os.path.dirname(f)
+ if len(self.fnames) == 1 and os.path.isdir(f):
+ cwd = f
+ self.fnames = []
+ else:
+ cwd = os.path.dirname(f)
self.menuitems = {}
if self.folder and self.fnames:
|
Loading...