CxFreeze/CxfreezeFindPath.py

Thu, 10 Jan 2019 14:21:02 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 10 Jan 2019 14:21:02 +0100
changeset 119
da2b54eabed1
parent 106
3bd158b161f1
child 122
69bc58558b6e
permissions
-rw-r--r--

Updated copyright for 2019.

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

# Copyright (c) 2013 - 2019 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