Skip to content

Instantly share code, notes, and snippets.

@caglartoklu
Created February 7, 2013 09:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save caglartoklu/4729925 to your computer and use it in GitHub Desktop.
Save caglartoklu/4729925 to your computer and use it in GitHub Desktop.
If the platform is IronPython, this function returns True, False otherwise. #python #ironpython
import sys
def is_ironpython():
"""
If the platform is IronPython, this function returns True, False otherwise.
"""
result = False
if sys.platform == "cli":
result = True
return result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment