You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i do remember having siilar issues when i did some work resolving issues before. i think in this scenario the code should be patched to be == instead. is keyword should be used to test identity rather than equality iirc.
The root path "/" not named to "Root"
BUT! When change this string:
if (device is "/"):
to
if(device == "/"):
the script work fine.
I dont know, maybe this bug work only me. (Debian 7.4, Python2 and Python3)
But this example work good:
$ >>> device = "/"
$ >>> if (device is "/"):
$ ... devicename="Root"
$ ...
$ >>> print (""+devicename+"")
$ Root
The text was updated successfully, but these errors were encountered: