For a hierarchical project, the EXE file generated by "pyinstaller" does not start.
Chris Angelico
rosuav at gmail.com
Tue Dec 7 13:16:21 EST 2021
On Wed, Dec 8, 2021 at 4:49 AM Mohsen Owzar <mohsen.owzar at gmail.com> wrote:
> *******************************************************************
> GPIOContrl.py
> *******************************************************************
> class GPIOControl:
> def my_print(self, args):
> if print_allowed == 1:
> print(args)
>
> def __init__(self):
Can't much help with your main question as I don't do Windows, but one
small side point: Instead of having a my_print that checks if printing
is allowed, you can conditionally replace the print function itself.
if not print_allowed:
def print(*args, **kwargs): pass
ChrisA
More information about the Python-list
mailing list