Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Python: Find the Current Platform

Python: Find the Current Platform
{filelink=16863}

import sys
print sys.platform,"=> ",
if sys.platform == "win32":
    import ntpath
    pathmodule = ntpath
elif sys.platform == "mac":
    import macpath
    pathmodule = macpath
else:
    import posixpath
    pathmodule = posixpath
print pathmodule

Users who found this page were searching for:

  • subtract time from java calendar
  • programming last date received
  • perl access 2010 connect
  • print all lines containing the string San
  • shiftRight array java
  • java vertically align output
  • python send email multiple receivers
  • Python Connect to Oracle
  • Strikeout text in Java
  • python calendar leap year

No comments yet.

Leave a Comment