Skip to content

Commit

Permalink
refactor: use pyright-compatible platform comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
thegamecracks committed Mar 21, 2024
1 parent 7de5e82 commit 88ba72f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dumdum/client/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import argparse
import contextlib
import platform
import sys
from typing import Iterator

from dumdum.logging import configure_logging
Expand Down Expand Up @@ -63,7 +63,7 @@ def run_gui() -> None:


def enable_windows_dpi_awareness():
if platform.system() == "Windows":
if sys.platform == "win32":
from ctypes import windll

windll.shcore.SetProcessDpiAwareness(2)
Expand Down

0 comments on commit 88ba72f

Please sign in to comment.