import os
import sys
import re
import logging

p4_logger = logging.getLogger("Perforce")

# Import app specific utilities, maya opens scenes differently than nuke etc
# Are we in maya or nuke?
if re.match( "maya", os.path.basename( sys.executable ), re.I ):
	p4_logger.info("Configuring for Maya")
	from MayaUtils import *
elif re.match( "nuke", os.path.basename( sys.executable ), re.I ):
	p4_logger.info("Configuring for Nuke")
	from NukeUtils import *
else:
	p4_logger.warning("Couldn't find app configuration")
	raise ImportError("No supported applications found that this plugin can interface with")

[((6, 12, 6, 41), 'logging.getLogger', 'logging.getLogger', ({(6, 30, 6, 40): '"""Perforce"""'}, {}), "('Perforce')", False, 'import logging\n'), ((10, 21, 10, 55), 'os.path.basename', 'os.path.basename', ({(10, 39, 10, 53): 'sys.executable'}, {}), '(sys.executable)', False, 'import os\n'), ((13, 23, 13, 57), 'os.path.basename', 'os.path.basename', ({(13, 41, 13, 55): 'sys.executable'}, {}), '(sys.executable)', False, 'import os\n')]