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:

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

No comments yet.

Leave a Comment