diff --git a/.gitignore b/.gitignore index 695010a..409f061 100644 --- a/.gitignore +++ b/.gitignore @@ -14,4 +14,7 @@ ortho.db trial.py bangla_words.xml word_db_english.json -ortho_ui.py \ No newline at end of file +ortho_ui.py +build_commands.txt +Ortho_Dictionary.spec +Ortho_Dictionary-x86_64.AppImage \ No newline at end of file diff --git a/README.md b/README.md index a30a712..e7b5605 100644 --- a/README.md +++ b/README.md @@ -24,3 +24,4 @@ - Then run YDM by this command: `python3 ortho.py` - The very first run may take some time because the of the extraction process of the sqlite database. + diff --git a/ortho.py b/ortho.py index a9c3696..6629543 100644 --- a/ortho.py +++ b/ortho.py @@ -22,6 +22,7 @@ class Main_Ui(QMainWindow): UI_FILE = os.path.join(BASE_DIR, "ortho.ui") DB_PATH = os.path.join(BASE_DIR, "ortho.db") + BN_JSON_DB_PATH = os.path.join(BASE_DIR, "word_db_bangla.json") if not os.path.exists(DB_PATH): print("Extracting DataBase") @@ -36,7 +37,7 @@ def init_db_connection(self): self.DB_CONNECTION = sqlite3.connect(self.DB_PATH) def init_json_bn_db(self): - with open("word_db_bangla.json") as json_file: + with open(f"{self.BN_JSON_DB_PATH}") as json_file: self.JSON_BN_DB = json.load(json_file) def __init__(self):