Py3: macOS specific fixes

More will be needed
This commit is contained in:
Safihre committed 2020-02-25 21:33:52 +01:00
1 parent 5a7e1a1699
commit 8a62e325a1
3 files changed
+4 -1

No files matched your search

+1
View File
@@ -61,6 +61,7 @@ elif os.name == "posix":
try:
import Foundation
import sabnzbd.utils.sleepless as sleepless
FOUNDATION = True
except:
pass
+2 -1
View File
@@ -33,7 +33,8 @@ import logging
import sabnzbd
import sabnzbd.cfg
from sabnzbd.filesystem import get_filename, get_ext, diskspace, to_units
from sabnzbd.filesystem import get_filename, get_ext, diskspace
from sabnzbd.misc import to_units
from sabnzbd.constants import VALID_ARCHIVES, VALID_NZB_FILES, MEBI, Status
from sabnzbd.panic import launch_a_browser
import sabnzbd.notifier as notifier
+1
View File
@@ -0,0 +1 @@
# Needed so the import always works