From 7b1fdeb62e8ff8a2ddadc3dd1a60b6cf08b9891d Mon Sep 17 00:00:00 2001 From: anne Date: Wed, 13 Sep 2023 19:35:14 +0200 Subject: [PATCH] black my mortal enemy. thank you for changing one line maybe --- ostools.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ostools.py b/ostools.py index 7fdf245..d5309ad 100644 --- a/ostools.py +++ b/ostools.py @@ -10,6 +10,7 @@ except ImportError: DATADIR = None + def isOSX(): return sys.platform == "darwin" @@ -84,10 +85,10 @@ def getDataDir(): # This means that anytime its called during runtime after init will just return a lie. it will just give you a different path # (Because the Application now has a Name which in turn makes it return an application-name-specific writableLocation, which pchum isnt expecting anywhere) # so - # here im caching the result at init & returning that + # here im caching the result at init & returning that # seemed like the safest way to do this without breaking half of this program return DATADIR - + try: if isOSX(): return os.path.join( @@ -114,4 +115,5 @@ def getDataDir(): print(e) return "" -DATADIR = getDataDir() \ No newline at end of file + +DATADIR = getDataDir()