CxFreeze/CxfreezeFindPath.py

Wed, 30 Dec 2020 11:02:05 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Wed, 30 Dec 2020 11:02:05 +0100
changeset 130
c15aad5f55cf
parent 125
13f16f4e355a
child 136
d9228f38cfe8
permissions
-rw-r--r--

Updated copyright for 2021.

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

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

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

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