Browse path starting from from current value

This commit is contained in:
JonnyWong16 2020-07-18 15:19:42 -07:00
parent b52ab4885b
commit a675202537
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
5 changed files with 23 additions and 32 deletions

View file

@ -1232,6 +1232,9 @@ def browse_path(path=None, include_hidden=False, filter_ext=''):
}
output.append(out)
if os.path.isfile(path):
path = os.path.dirname(path)
if not os.path.isdir(path):
return output