Skip to content

Commit d2a47b7

Browse files
committed
Don't try to load the sublime UI on unsupported platforms.
1 parent d93f081 commit d2a47b7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pyzen/ui/sublime.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ class SublimeUI(PyZenUI):
1313
def _read_pidfile(cls):
1414
if sys.platform == 'darwin':
1515
base_path = os.path.join(os.environ['HOME'], 'Library', 'Application Support', 'Sublime Text 2')
16+
else:
17+
return None
1618
pid_path = os.path.join(base_path, 'sublime2.pid')
1719
if not os.path.exists(pid_path):
1820
return None

0 commit comments

Comments
 (0)