Hi; here is a sample of the code of my application being created:
import os from os import path import pathlib import sys scriptDirectory=os.path.dirname(os.path.realpath(__file__)) path_directory=scriptDirectory + '\\data_base' os.makedirs(path_directory, exist_ok=True) connexion = sqlite3.connect(path_directory + '\\ils35R.db') curseur = connexion.cursor() curseur.execute('''CREATE TABLE IF NOT EXISTS loc35R (date_loc35R text, time_loc35R text,mon_loc35R text ) ''') curseur.execute('''INSERT INTO loc35R VALUES (?,?,?) ''', (lecture_date_loc35R,lecture_time_loc35R, lecture_mon_loc35R)) connexion.commit() curseur.close() connexion.close()the code works well, but during the conversion of the python file to an executable file: there is a path error with pyinstaller