import sys
import os


def maya_executable():
    """return the maya executable for this maya or mayapy"""
    process_path = sys.executable
    maya_dir = os.path.dirname(process_path)

    if os.name == 'nt':
        return os.path.join(maya_dir, 'maya.exe')
    else:
        # todo: OSX/Linux support
        raise NotImplemented()


def mayapy_executable():
    """return the mayapy executable for this maya or mayapy"""
    process_path = sys.executable
    maya_dir = os.path.dirname(process_path)

    if os.name == 'nt':
        return os.path.join(maya_dir, 'mayapy.exe')
    else:
        # todo: OSX/Linux support
        raise NotImplemented()


def in_mayapy():
    if os.name == 'nt':
        return os.path.join(maya_dir, 'mayapy.exe')
    else:
        # todo: OSX/Linux support
        raise NotImplemented()

e7f2ffbca7cbd11d61c0480dff5a7eb831b78503
<mask token>

<mask token>


def maya_executable():
    """return the maya executable for this maya or mayapy"""
    process_path = sys.executable
    maya_dir = os.path.dirname(process_path)
    if os.name == 'nt':
        return os.path.join(maya_dir, 'maya.exe')
    else:
        raise NotImplemented()


def mayapy_executable():
    """return the mayapy executable for this maya or mayapy"""
    process_path = sys.executable
    maya_dir = os.path.dirname(process_path)
    if os.name == 'nt':
        return os.path.join(maya_dir, 'mayapy.exe')
    else:
        raise NotImplemented()


<mask token>

<mask token>


def maya_executable():
    """return the maya executable for this maya or mayapy"""
    process_path = sys.executable
    maya_dir = os.path.dirname(process_path)
    if os.name == 'nt':
        return os.path.join(maya_dir, 'maya.exe')
    else:
        raise NotImplemented()


def mayapy_executable():
    """return the mayapy executable for this maya or mayapy"""
    process_path = sys.executable
    maya_dir = os.path.dirname(process_path)
    if os.name == 'nt':
        return os.path.join(maya_dir, 'mayapy.exe')
    else:
        raise NotImplemented()


def in_mayapy():
    if os.name == 'nt':
        return os.path.join(maya_dir, 'mayapy.exe')
    else:
        raise NotImplemented()

import sys
import os


def maya_executable():
    """return the maya executable for this maya or mayapy"""
    process_path = sys.executable
    maya_dir = os.path.dirname(process_path)
    if os.name == 'nt':
        return os.path.join(maya_dir, 'maya.exe')
    else:
        raise NotImplemented()


def mayapy_executable():
    """return the mayapy executable for this maya or mayapy"""
    process_path = sys.executable
    maya_dir = os.path.dirname(process_path)
    if os.name == 'nt':
        return os.path.join(maya_dir, 'mayapy.exe')
    else:
        raise NotImplemented()


def in_mayapy():
    if os.name == 'nt':
        return os.path.join(maya_dir, 'mayapy.exe')
    else:
        raise NotImplemented()

import sys
import os


def maya_executable():
    """return the maya executable for this maya or mayapy"""
    process_path = sys.executable
    maya_dir = os.path.dirname(process_path)

    if os.name == 'nt':
        return os.path.join(maya_dir, 'maya.exe')
    else:
        # todo: OSX/Linux support
        raise NotImplemented()


def mayapy_executable():
    """return the mayapy executable for this maya or mayapy"""
    process_path = sys.executable
    maya_dir = os.path.dirname(process_path)

    if os.name == 'nt':
        return os.path.join(maya_dir, 'mayapy.exe')
    else:
        # todo: OSX/Linux support
        raise NotImplemented()


def in_mayapy():
    if os.name == 'nt':
        return os.path.join(maya_dir, 'mayapy.exe')
    else:
        # todo: OSX/Linux support
        raise NotImplemented()
