Use absolute imports
This commit is contained in:
@@ -0,0 +1 @@
|
||||
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
from .summary import Summary
|
||||
@@ -0,0 +1,16 @@
|
||||
from borgmanager.borg import Repo
|
||||
|
||||
|
||||
class Summary(object):
|
||||
def __init__(self, db, args):
|
||||
self.db = db
|
||||
|
||||
if args == "repo":
|
||||
print(self.print_repos())
|
||||
|
||||
def print_repos(self):
|
||||
repo_sql = self.db.get_repos()
|
||||
repos = []
|
||||
for line in repo_sql:
|
||||
repos.append(Repo.from_sql(line))
|
||||
pass
|
||||
Reference in New Issue
Block a user