Moved code to main func in src
This commit is contained in:
parent
e744cba7c8
commit
3cb9c74bac
3
main.py
3
main.py
@ -1,7 +1,4 @@
|
||||
import src
|
||||
from dotenv import load_dotenv
|
||||
|
||||
load_dotenv("./.env")
|
||||
|
||||
|
||||
def main() -> None:
|
||||
|
@ -1,7 +1,20 @@
|
||||
import os
|
||||
|
||||
import mariadb
|
||||
from dotenv import load_dotenv
|
||||
|
||||
from . import bot, cryptography, database
|
||||
|
||||
|
||||
__all__ = ["bot", "cryptography", "database"]
|
||||
|
||||
|
||||
def main() -> None:
|
||||
...
|
||||
load_dotenv("./.env")
|
||||
con = mariadb.connect(
|
||||
os.getenv("DB_HOST"),
|
||||
os.getenv("DB_USER"),
|
||||
os.getenv("DB_PASS"),
|
||||
os.getenv("DB_NAME"),
|
||||
)
|
||||
database.prepare(con)
|
||||
|
Reference in New Issue
Block a user