mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-07-14 22:45:47 +00:00
do not update database via pacman, use ahriman's own databses
This commit is contained in:
@ -56,7 +56,8 @@ class Shell(Handler):
|
||||
# licensed by https://creativecommons.org/licenses/by-sa/3.0
|
||||
path = Path(sys.prefix) / "share" / "ahriman" / "templates" / "shell"
|
||||
StringPrinter(path.read_text(encoding="utf8")).print(verbose=False)
|
||||
# we only want to pass application isntance inside
|
||||
if args.code is None:
|
||||
code.interact(local=locals())
|
||||
code.interact(local={"application": application})
|
||||
else:
|
||||
code.InteractiveConsole(locals=locals()).runcode(args.code)
|
||||
code.InteractiveConsole(locals={"application": application}).runcode(args.code)
|
||||
|
Reference in New Issue
Block a user