Skip to content

Commit

Permalink
(fix) GUI execution
Browse files Browse the repository at this point in the history
  • Loading branch information
javadr committed Mar 28, 2023
1 parent e5e2251 commit 340173f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
1.2 - 2023-03-28
-- Fix GUI execution issue

1.1.17 - 2022-12-21
-- Fix the issue with می and نمی when they come as nouns, not prefixes.
-- Several new untouchable words: تنهای/تنهایی/تک‌وتنهایی
Expand Down
2 changes: 1 addition & 1 deletion negar/constants.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from pathlib import Path

__version__ = "1.1.17"
__version__ = "1.2"

DATAFILE = Path(__file__).parent.absolute() / "data/untouchable.dat"
USERFILE = Path.home() / ".python-negar"
Expand Down
2 changes: 1 addition & 1 deletion negar/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ def main():
try:
from negar_gui import main
main.main()
except ModuleNotFoundError:
except (ModuleNotFoundError, ImportError):
print("Install `negar-gui` to have a GUI! :D")
print("==>> pip install negar-gui")
print("After installing negar-gui, `negar` would be an alias for `negar-gui`")
Expand Down

0 comments on commit 340173f

Please sign in to comment.