Actions
Bug #1
closedPython os.name returns "nt"
Status:
Closed
Priority:
Normal
Assignee:
somebody
Category:
Python Code and/or Scripts
Target version:
-
Start date:
Due date:
% Done:
0%
Resolution:
invalid
Affected Version:
Description
Hi,
Maybe I'm going mad here, but I think Python os.name used to return "xbox", now it returns "nt" value.
See test script code attached.
I need a way to different between platforms, I could maybe look for something else, but there might be other scripts/plugins out there relying on this.
Thanks,
Dan
Files
Updated by dandar3 over 14 years ago
I don't know if this will help with anything, but a change might need to be applied in xbmc\system\python\python24.zlib to os.py.
Thanks,
dan
Updated by dandar3 over 14 years ago
Maybe I was wrong... Anyways, I think I found a better way using os.environ.get("OS") which seems to be set by XBMC, that returns "xbox" correctly.
Please feel free to close this ticket.
thanks,
dan
Updated by buzz over 14 years ago
- Status changed from New to Closed
- Resolution set to invalid
Actions