Skip to content

Commit

Permalink
simplify initial platform update
Browse files Browse the repository at this point in the history
  • Loading branch information
stenson committed Jan 19, 2025
1 parent 96daaab commit 04bc761
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Lib/fontgoggles/misc/platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,6 @@ def path(self):

platform = SimpleNamespace()

_platform = PlatformCocoa if CAN_COCOA else PlatformGeneric
platform.__dict__.update(**_platform.__dict__)


def setUseCocoa(onOff):
global platform, _platform
Expand All @@ -108,3 +105,6 @@ def setUseCocoa(onOff):

def getUseCocoa():
return _platform is PlatformCocoa


setUseCocoa(CAN_COCOA)

0 comments on commit 04bc761

Please sign in to comment.