Skip to content

Instantly share code, notes, and snippets.

View AndrewHazelden's full-sized avatar

Andrew Hazelden AndrewHazelden

View GitHub Profile
@AndrewHazelden
AndrewHazelden / platform_check.py
Created December 6, 2015 17:16
Use Python to check the current operating system
# Check the operating system
# Example: mxPlatform = getPlatform()
def getPlatform():
import platform
osPlatform = str(platform.system())
mxPlatform = ''
if osPlatform == 'Windows':
mxPlatform = 'Windows'
@AndrewHazelden
AndrewHazelden / list_icon_resources.mel
Last active December 9, 2015 11:39
Use MEL in Maya to list the active icons directories
print "Icon folders:\n";
print `xbmLangPathList`;