Merge pull request #10 from ddPn08/patch-1

Fix directory for image browser
pull/3/head
不会画画的中医不是好程序员 2022-10-25 19:51:36 +08:00 committed by GitHub
commit fecd3f4662
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -237,7 +237,7 @@ def show_images_history(tabname):
if not custom_dir:
d = dir_name.split("/")
dir_name = d[0]
dir_name = "/" if dir_name.startswith("/") else d[0]
for p in d[1:]:
dir_name = os.path.join(dir_name, p)
if not os.path.exists(dir_name):