How to use pyinstaller - 10 common examples

To help you get started, we’ve selected a few pyinstaller examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Lithium95 / ConTroll_Remote_Access_Trojan / pyinstaller / buildtests / import / relimp / relimp1.py View on Github external
from __future__ import absolute_import

name = 'relimp.relimp1'

from . import relimp2 as upper
from . relimp import relimp2 as lower

assert upper.name == 'relimp.relimp2'
assert lower.name == 'relimp.relimp.relimp2'

if upper.__name__ == lower.__name__:
    raise SystemExit("Imported the same module")

if upper.__file__ == lower.__file__:
    raise SystemExit("Imported the same file")
github Lithium95 / ConTroll_Remote_Access_Trojan / pyinstaller / buildtests / import / relimp / relimp1.py View on Github external
from __future__ import absolute_import

name = 'relimp.relimp1'

from . import relimp2 as upper
from . relimp import relimp2 as lower

assert upper.name == 'relimp.relimp2'
assert lower.name == 'relimp.relimp.relimp2'

if upper.__name__ == lower.__name__:
    raise SystemExit("Imported the same module")

if upper.__file__ == lower.__file__:
    raise SystemExit("Imported the same file")
github Lithium95 / ConTroll_Remote_Access_Trojan / pyinstaller / buildtests / import / relimp / relimp1.py View on Github external
from __future__ import absolute_import

name = 'relimp.relimp1'

from . import relimp2 as upper
from . relimp import relimp2 as lower

assert upper.name == 'relimp.relimp2'
assert lower.name == 'relimp.relimp.relimp2'

if upper.__name__ == lower.__name__:
    raise SystemExit("Imported the same module")

if upper.__file__ == lower.__file__:
    raise SystemExit("Imported the same file")
github Lithium95 / ConTroll_Remote_Access_Trojan / pyinstaller / buildtests / import / relimp / relimp1.py View on Github external
from __future__ import absolute_import

name = 'relimp.relimp1'

from . import relimp2 as upper
from . relimp import relimp2 as lower

assert upper.name == 'relimp.relimp2'
assert lower.name == 'relimp.relimp.relimp2'

if upper.__name__ == lower.__name__:
    raise SystemExit("Imported the same module")

if upper.__file__ == lower.__file__:
    raise SystemExit("Imported the same file")
github Lithium95 / ConTroll_Remote_Access_Trojan / pyinstaller / buildtests / basic / test_threading2.py View on Github external
_OUT_EXPECTED = ['ONE', 'TWO', 'THREE']


# Code for the subprocess.
if 'PYI_THREAD_TEST_CASE' in os.environ:
    class TestThreadClass(threading.Thread):
        def __init__(self):
            threading.Thread.__init__(self)

        def run(self):
            print 'ONE'
            print 'TWO'
            print 'THREE'
    # Main process should not exit before the thread stops.
    # This is the behaviour of Python interpreter.
    TestThreadClass().start()


# Execute itself in a subprocess.
else:
    # Differenciate subprocess code.
    itself = sys.argv[0]
    # Run subprocess.
    try:
        import subprocess
        proc = subprocess.Popen([itself], stdout=subprocess.PIPE,
                env={'PYI_THREAD_TEST_CASE': 'any_string'},
                stderr=subprocess.PIPE, shell=False)
        # Waits for subprocess to complete.
        out, err = proc.communicate()
    except ImportError:
        # Python 2.3 does not have subprocess module.
github Lithium95 / ConTroll_Remote_Access_Trojan / pyinstaller / buildtests / import / relimp / B / C.py View on Github external
name = 'relimp.B.C'

from . import D                 # Imports relimp.B.D
from .D import X                 # Imports relimp.B.D.X
from .. import E                # Imports relimp.E
from ..F import G               # Imports relimp.F.G
from ..F import H               # Imports relimp.F.H

assert D.name == 'relimp.B.D'
assert E.name == 'relimp.E'
assert G.name == 'relimp.F.G'
assert H.name == 'relimp.F.H'
github Lithium95 / ConTroll_Remote_Access_Trojan / pyinstaller / buildtests / import / relimp / B / C.py View on Github external
name = 'relimp.B.C'

from . import D                 # Imports relimp.B.D
from .D import X                 # Imports relimp.B.D.X
from .. import E                # Imports relimp.E
from ..F import G               # Imports relimp.F.G
from ..F import H               # Imports relimp.F.H

assert D.name == 'relimp.B.D'
assert E.name == 'relimp.E'
assert G.name == 'relimp.F.G'
assert H.name == 'relimp.F.H'
github Lithium95 / ConTroll_Remote_Access_Trojan / pyinstaller / buildtests / import / relimp / B / C.py View on Github external
name = 'relimp.B.C'

from . import D                 # Imports relimp.B.D
from .D import X                 # Imports relimp.B.D.X
from .. import E                # Imports relimp.E
from ..F import G               # Imports relimp.F.G
from ..F import H               # Imports relimp.F.H

assert D.name == 'relimp.B.D'
assert E.name == 'relimp.E'
assert G.name == 'relimp.F.G'
assert H.name == 'relimp.F.H'
github Lithium95 / ConTroll_Remote_Access_Trojan / pyinstaller / buildtests / import / relimp / B / C.py View on Github external
name = 'relimp.B.C'

from . import D                 # Imports relimp.B.D
from .D import X                 # Imports relimp.B.D.X
from .. import E                # Imports relimp.E
from ..F import G               # Imports relimp.F.G
from ..F import H               # Imports relimp.F.H

assert D.name == 'relimp.B.D'
assert E.name == 'relimp.E'
assert G.name == 'relimp.F.G'
assert H.name == 'relimp.F.H'
github ussserrr / pid-controller-gui / pyinstaller / main.py View on Github external
def __init__(self, parent=None):
        super(ErrorsSettingsWindow, self).__init__(parent)
        self.setWindowTitle("PID errors settings")
        self.setWindowIcon(QIcon(resource_path('img/set_errors.png')))


        self.PerrMin, self.PerrMax = tivaConn.read('PerrLimits')
        PerrMinLabel = QLabel("Min:")
        self.PerrMinLineEdit = QLineEdit()
        self.PerrMinLineEdit.setText('{}'.format(self.PerrMin))
        PerrMaxLabel = QLabel("Max:")
        self.PerrMaxLineEdit = QLineEdit()
        self.PerrMaxLineEdit.setText('{}'.format(self.PerrMax))
        PerrLimitsSetButton = QPushButton('Set')
        PerrLimitsSetButton.clicked.connect(self.setPerrLimits)

        hPerrBox = QHBoxLayout()
        hPerrBox.addWidget(PerrMinLabel)