]> granicus.if.org Git - python/commitdiff
Bug #229280: remove '/' characters from the OS name (for BSD/OS :) )
authorAndrew M. Kuchling <amk@amk.ca>
Tue, 27 Feb 2001 19:25:42 +0000 (19:25 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Tue, 27 Feb 2001 19:25:42 +0000 (19:25 +0000)
Lib/distutils/util.py

index 009ba6cb93c39d47192e531534b075fca2e96401..e596150422526e531d4fc97c122ec249755ecf9f 100644 (file)
@@ -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.