79670656

Date: 2025-06-18 12:47:59
Score: 0.5
Natty:
Report link

The way to fix this problem is to use Appdata folder for all changing files, as it's done in most of programmes. So I implemented the next code:

APPDATADIR = path.join(getenv('APPDATA'), "Company", "App")
if not(path.exists(APPDATADIR)):
    makedirs(APPDATADIR)
CONFIG_FILE = path.join(APPDATADIR, "config.ini")
SAVE_FILE = path.join(APPDATADIR, "save")
FIRST_START_DIR = path.join(APPDATADIR, "firststart")
IS_FIRST_START = not(path.exists(FIRST_START_DIR))

Now it saves everything in the Appdata, and the file for evaluating the first start also was moved.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Super_Tsario