Hi,

I'm bundling quite a large package into a single file executable. I have it 
working correctly, however, I noticed that when running the executable, I 
can still see my source python files in the temporary MEI_xxxx folder.

On the documentation it says:

"The bundled app does not include any source code. However, PyInstaller 
bundles compiled Python scripts (.pyc files). These could in principle be 
decompiled to reveal the logic of your code."

This does not seem to be the case. I've included my spec file below:

-----
# -*- mode: python ; coding: utf-8 -*-

from kivy_deps import sdl2, glew
from kivymd import hooks_path as kivymd_hooks_path

a = Analysis(
    ['..\\src\\ui\\main.py'],
    pathex=[],  
    binaries=[],
    datas=[('..\\src\\ui\\screens\\station_editor.kv', 'src/ui/screens')], 
    hiddenimports=['kivymd', 'pyvisa', 'serial', 'easyprocess', 'requests', 
'plyer.platforms.win.filechooser'],  
    hookspath=[kivymd_hooks_path],  # Add hooks for KivyMD
    hooksconfig={},
    runtime_hooks=[],
    excludes=[],
    noarchive=False,
    optimize=0,
)

pyz = PYZ(a.pure)

exe = EXE(
    pyz,
    Tree('..', excludes=['Executable', 'test', 'scripts', 'venv']),
    a.scripts,
    a.binaries,
    a.datas,
    *[Tree(p) for p in (sdl2.dep_bins + glew.dep_bins)],
    name='App',
    debug=False,
    bootloader_ignore_signals=False,
    strip=False,
    upx=True,
    console=True, 
    disable_windowed_traceback=False,
    argv_emulation=False,
    target_arch=None,
    codesign_identity=None,
    entitlements_file=None,
    icon=None,  # Set this if you have a custom icon
)


------

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/fd365dd1-7603-48d5-88ec-fd482feb4d4en%40googlegroups.com.

Reply via email to