CxFreeze/CxfreezeFindPath.py

Sun, 31 Dec 2017 16:59:10 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 31 Dec 2017 16:59:10 +0100
changeset 106
3bd158b161f1
parent 102
78d1632d4b83
child 119
da2b54eabed1
permissions
-rw-r--r--

Updated copyright for 2018.

# -*- coding: utf-8 -*-

# Copyright (c) 2013 - 2018 Detlev Offenbach <detlev@die-offenbachs.de>
#

"""
Script to find the cxfreeze directory from running Python interpreter.
"""

from __future__ import unicode_literals

import os
import sys

for sysPath in sys.path:
    modpath = os.path.join(sysPath, "cx_Freeze")
    if os.path.exists(modpath):
        print(modpath)      # __IGNORE_WARNING_M801__
        break

eric ide

mercurial