Jump to content
Sign in to follow this  
Sn3akyP3t3

UnRaid 6.7 - Python Platform Unexpected Change

1 post in this topic Last Reply

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.

Share this post


Link to post

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.

Sign in to follow this