add support for newer fusepy-version 3.0.1
This commit is contained in:
parent
3082530c84
commit
259e2a5fa8
1 changed files with 9 additions and 2 deletions
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue