Please make update-notifier's apt_check.py easily accessible as a module/library
Bug #1353946 reported by
Jörn Schönyan
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
update-notifier (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Hello everyone,
apt_check.py has the ability to be used as a Python module:
[...]
def run(options=None):
[...]
# return the number of upgrades (if its used as a module)
return(
[...]
But (due to packaging), it's not possible to simple import it like
from apt_check import run
Would it be possible to fix that? Importing the module via full path is possible, but not really good coding style imho. I'm working on a Qt/QML version of update-
Thanks for your time and attention!
To post a comment you must log in.