Skip to content

Commit 6e5b7b5

Browse files
committed
Make plugin load into 1.5.3/Python 3
1 parent 24e0480 commit 6e5b7b5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

octoprint_netconnectd/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import threading
1111
import netifaces
1212
from flask import jsonify, make_response
13-
from flask.ext.babel import gettext
13+
from flask_babel import gettext
1414

1515
import octoprint.plugin
1616
from octoprint.server import admin_permission
@@ -311,12 +311,12 @@ def _log_state_timed(self, delay=0):
311311

312312

313313
__plugin_name__ = "Netconnectd Client"
314-
314+
__plugin_pythoncompat__ = ">=3.7,<4"
315315

316316
def __plugin_check__():
317317
import sys
318318

319-
if sys.platform == "linux2":
319+
if sys.platform.startswith("linux"):
320320
return True
321321

322322
logging.getLogger("octoprint.plugins." + __name__).warn(

0 commit comments

Comments
 (0)