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

Python: Find the Current Platform

Python: Find the Current Platform

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

Users who found this page were searching for:

  • programming last date received
  • subtract time from java calendar
  • java email header from lastname
  • python key exists in dictionary
  • Python Connect to Oracle
  • python merge dictionaries
  • python calendar leap year
  • java vertically align output
  • python send email multiple receivers
  • Strikeout text in Java

No comments yet.

Leave a Comment