Skip to content

Commit 1856da2

Browse files
committed
refactor: trim archive methods, avoid circular imports
1 parent d625536 commit 1856da2

File tree

6 files changed

+215
-199
lines changed

6 files changed

+215
-199
lines changed

src/reCBZ/__main__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import reCBZ
99
import reCBZ.config as config
1010
from reCBZ import wrappers, util
11-
from reCBZ.profiles import profiles_list
11+
from reCBZ.profiles import ProfileDict
1212

1313

1414
def print_title() -> None:
@@ -312,8 +312,8 @@ def main():
312312

313313
if args.show_profiles:
314314
print(f'{reCBZ.CMDNAME} -p ...')
315-
for prof in profiles_list:
316-
print(prof.nickname, '=', prof.desc)
315+
for prof_key, prof_class in ProfileDict.items():
316+
print(prof_key, '=', prof_class.desc)
317317
exit(0)
318318

319319
# parse files

0 commit comments

Comments
 (0)