Commit 63ab2a86 authored by Andrew M. Kuchling's avatar Andrew M. Kuchling

Bug #229280: remove '/' characters from the OS name (for BSD/OS :) )

parent b39f3320
......@@ -41,7 +41,12 @@ def get_platform ():
# Try to distinguish various flavours of Unix
(osname, host, release, version, machine) = os.uname()
osname = string.lower(osname)
# Convert the OS name to lowercase and remove '/' characters
# (to accommodate BSD/OS)
osname = string.lower(osname)
osname = string.replace(osname, '/', '')
if osname[:5] == "linux":
# At least on Linux/Intel, 'machine' is the processor --
# i386, etc.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment