Skip to content

Commit

Permalink
Fix import error in main.py
Browse files Browse the repository at this point in the history
Cannot import windll on non-windows OS
  • Loading branch information
tomasvana10 committed Jun 25, 2024
1 parent 7d3cd51 commit ada800c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crossword_puzzle/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from .main import main

__version__ = "2.2.81"
__version__ = "2.2.82"
__package__ = "crossword_puzzle"
__all__ = ["main"]
5 changes: 4 additions & 1 deletion crossword_puzzle/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
"""

from configparser import ConfigParser
from ctypes import windll
try:
from ctypes import windll
except ImportError:
pass
from locale import windows_locale
from os import name as os_name
from os import environ
Expand Down

0 comments on commit ada800c

Please sign in to comment.