Skip to content

Commit

Permalink
Merge pull request #1059 from terminator850/main
Browse files Browse the repository at this point in the history
Fix the problem of not running on Windows
  • Loading branch information
bkerler authored Jun 19, 2024
2 parents 9311353 + 348a784 commit 75d8387
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions mtkclient/Library/Filesystem/mtkdafs.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
try:
from fuse import Operations, LoggingMixIn
except ImportError:
raise ImportError('fuse library not installed')
from stat import S_IFDIR, S_IFREG
from tempfile import NamedTemporaryFile
from time import time
Expand All @@ -12,7 +8,10 @@
os.environ.setdefault('FUSE_LIBRARY_PATH',
os.path.join(os.path.dirname(__file__),
r"bin\winfsp-%s.dll" % ("x64" if sys.maxsize > 0xffffffff else "x86")))

try:
from fuse import Operations, LoggingMixIn
except ImportError:
raise ImportError('fuse library not installed')

class MtkDaFS(LoggingMixIn, Operations):
def __init__(self, da_handler, rw=False):
Expand Down

0 comments on commit 75d8387

Please sign in to comment.