add support for newer fusepy-version 3.0.1

This commit is contained in:
Jakobus Schürz 2020-02-11 14:41:31 +01:00
parent 3082530c84
commit 259e2a5fa8

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python3 -u #!/usr/bin/env -S python3 -u
from __future__ import with_statement from __future__ import with_statement
@ -9,7 +9,14 @@ import errno
from datetime import datetime, timedelta from datetime import datetime, timedelta
import time import time
from fuse import FUSE, FuseOSError, Operations try:
from fuse import FUSE, FuseOSError, Operations
except:
try:
from fusepy import FUSE, FuseOSError, Operations
except:
print("please install fusepy")
raise errno.ENOENT
class Passthrough(Operations): class Passthrough(Operations):