Turn the script into an executable, including data files in the remote folder

I have a small application that I created as a utility for other members of my office. I AM AN IT. He’s a guy in a clearly non-technological industry, so I try to make it as simple as possible, while maintaining the ability to change the program without re-freezing the whole program. So my program is as follows:

| C:\Program Files (x86)\company_name\product_name
| | findppw.exe (my script)
| | runtime files that are built during the freeze
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
| %APPDATA%\company_name\product_name\
| | Reports\
| | | This gets filled with temp files only
| | Logs\
| | | This gets filled with log files
| | config.ini
| | stores.ini

I am having trouble preparing a folder %APPDATA%, which should be the focus of this issue.

My findppw.pywscript has the following imports:

from tkinter import *
from tkinter import ttk
import threading
from collections import OrderedDict
import datetime
import zipfile
from tempfile import NamedTemporaryFile
import queue
import os,sys # for sys.exit and os.startfile
import logging
from appdirs import AppDirs # to find %appdata% equivalent
import ast # for literal_eval of info in stores.ini and config.ini

I tried to use cx_Freezeand py2exefor his freezing.

py2exe:

py2exe script , Windows : " " . , , , , - , .

cx_Freeze:

py2exe , cx_Freeze. ( "," ", % APPDATA% !" ), , setup.py , , ! initialize script, / , . FEELS, , .

, , , ....

:

setup.py script cx_Freeze EDIT: pyinstaller, , , , , ?

, , , : py2exe ?

+4
2

, , py2exe pyinstaller . , Inno Setup. , .

0

Source: https://habr.com/ru/post/1547957/


All Articles