Use OctoPrint native Way of getting the Version number

This commit is contained in:
Franzi 2017-11-20 13:08:45 +01:00
parent 23dddb11bc
commit 027a67c530

View file

@ -202,8 +202,7 @@ class LCD_HD44780(octoprint.plugin.StartupPlugin,
self._line2 = '' self._line2 = ''
self._line3 = '' self._line3 = ''
version = octoprint.server.DISPLAY_VERSION line4 = 'OctoPrint ' + octoprint.__version__
line4 = 'OctoPrint ' + version.split(' ', 1)[0]
self._line4 = line4.center(20) self._line4 = line4.center(20)