Skip to content

Commit 3c6dfe0

Browse files
committed
bugfix: Specify imports (fixes #10, #11, #12)
See ronaldoussoren/pyobjc#575
1 parent 3f524c6 commit 3c6dfe0

File tree

5 files changed

+23
-9
lines changed

5 files changed

+23
-9
lines changed

ezntfs/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""An easy-to-use wrapper for NTFS-3G on macOS."""
22

3-
__version__ = "1.1.3"
3+
__version__ = "1.1.4"

ezntfs/app.py

+20-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
1-
from Foundation import *
2-
from AppKit import *
1+
from Foundation import NSObject
2+
from AppKit import (
3+
NSApplication,
4+
NSApplicationActivationPolicyProhibited,
5+
NSControlStateValueOn,
6+
NSImage,
7+
NSMenu,
8+
NSMenuItem,
9+
NSStatusBar,
10+
NSVariableStatusItemLength,
11+
NSWorkspace,
12+
NSWorkspaceDidMountNotification,
13+
NSWorkspaceDidRenameVolumeNotification,
14+
NSWorkspaceDidUnmountNotification,
15+
NSWorkspaceVolumeLocalizedNameKey,
16+
NSWorkspaceVolumeOldURLKey,
17+
NSWorkspaceVolumeURLKey,
18+
)
319
from PyObjCTools import AppHelper
420

521
from collections import deque
@@ -146,8 +162,8 @@ def handleVolumeDidRename_(self, notification):
146162

147163
if self.state is AppState.READY:
148164
if old_volume is not None:
149-
new_name = notificaiton.userInfo()[NSWorkspaceVolumeLocalizedNameKey]
150-
new_path = notificaiton.userInfo()[NSWorkspaceVolumeURLKey].path()
165+
new_name = notification.userInfo()[NSWorkspaceVolumeLocalizedNameKey]
166+
new_path = notification.userInfo()[NSWorkspaceVolumeURLKey].path()
151167
new_volume = old_volume._replace(name=new_name, mount_path=new_path)
152168
self.addVolume_(new_volume)
153169
else:

ezntfs/cli.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import os
21
import sys
32

43
from . import ezntfs

ezntfs/ezntfs.py

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
NTFS_3G_PATH = os.getenv("NTFS_3G_PATH", shutil.which("ntfs-3g"))
1414

15+
1516
def get_environment_info():
1617
fuse = (
1718
"macfuse" if os.path.exists("/Library/Filesystems/macfuse.fs")

pyproject.toml

+1-3
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ requires-python=">=3.6"
1717
dynamic = ["version", "description"]
1818

1919
dependencies = [
20-
# The newest version of pyobjc seems to break things.
21-
# See: https://github.com/lezgomatt/ezntfs/issues/10
22-
"pyobjc <9",
20+
"pyobjc",
2321
]
2422

2523
[project.urls]

0 commit comments

Comments
 (0)