core: cleanup/sort imports according to ruff check --select I
This commit is contained in:
parent
7023088d13
commit
478e288ea8
45 changed files with 235 additions and 170 deletions
|
@ -1,11 +1,13 @@
|
|||
from pathlib import Path
|
||||
|
||||
|
||||
# todo preinit isn't really a good name? it's only in a separate file because
|
||||
# - it's imported from my.core.init (so we wan't to keep this file as small/reliable as possible, hence not common or something)
|
||||
# - we still need this function in __main__, so has to be separate from my/core/init.py
|
||||
def get_mycfg_dir() -> Path:
|
||||
import appdirs # type: ignore[import-untyped]
|
||||
import os
|
||||
|
||||
import appdirs # type: ignore[import-untyped]
|
||||
# not sure if that's necessary, i.e. could rely on PYTHONPATH instead
|
||||
# on the other hand, by using MY_CONFIG we are guaranteed to load it from the desired path?
|
||||
mvar = os.environ.get('MY_CONFIG')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue