UnRaid 6.7 - Python Platform Unexpected Change


Recommended Posts

Probably won't matter to many people, but if you do cross-platform Python scripting on UnRaid and the script inspects what environment it is running from you may be in need to fix your script.  The recent version of UnRaid 6.7 has changed the case for good reasons I'm sure :)

 

Here's the change:

>>> print(platform.release())
4.19.41-Unraid

 

It used to be this case "unRAID".

 

The solution is to make it case insensitive like so:

if "unraid" in platform.release().lower()

 

meh... details!  Anyway, hope this helps someone out there.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.