fixes related to creating folders

This commit is contained in:
Believethehype
2023-12-17 22:28:05 +01:00
parent 2adc87d925
commit 79deb2495c
4 changed files with 15 additions and 11 deletions

View File

@@ -26,8 +26,10 @@ class User:
def create_sql_table(db):
try:
import os
if not os.path.exists(r'.\db'):
os.makedirs(r'.\db')
if not os.path.exists(r'db'):
os.makedirs(r'db')
if not os.path.exists(r'outputs'):
os.makedirs(r'outputs')
con = sqlite3.connect(db)
cur = con.cursor()
cur.execute(""" CREATE TABLE IF NOT EXISTS users (