Project

General

Profile

Actions

Bug #1

closed

Python os.name returns "nt"

Added by dandar3 almost 14 years ago. Updated almost 14 years ago.

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

test os_name.py (39 Bytes) test os_name.py dandar3, 05/06/2010 06:18 PM
Actions #1

Updated by dandar3 almost 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

Actions #2

Updated by dandar3 almost 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

Actions #3

Updated by buzz almost 14 years ago

  • Status changed from New to Closed
  • Resolution set to invalid
Actions

Also available in: Atom PDF