Skip to content

Commit

Permalink
Fs.Factory only accept Path format
Browse files Browse the repository at this point in the history
  • Loading branch information
seiya-git committed Oct 21, 2023
1 parent 01842cb commit dbfc14e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion verif.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
except:pass
import Config
import Status
from pathlib import Path

# # SET ENVIRONMENT
# squirrel_dir=os.path.abspath(os.curdir)
Expand Down Expand Up @@ -45,7 +46,7 @@ def verify(file):
if filename.lower().endswith(('.nsp','.nsz')):
f = Fs.Nsp(filename)
elif filename.lower().endswith('.xci'):
f = Fs.factory(filename)
f = Fs.factory(Path(filename))
f.open(filename, 'rb')
elif filename.lower().endswith('.xcz'):
f = Fs.Xci(filename)
Expand Down

0 comments on commit dbfc14e

Please sign in to comment.