From c2000d7745cc06653a8826a1789efcada5613be9 Mon Sep 17 00:00:00 2001 From: Raphael Roberts Date: Wed, 26 May 2021 11:12:28 -0500 Subject: [PATCH] Absolute import --- openwrt_backup/retrieve.py | 2 +- setup.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/openwrt_backup/retrieve.py b/openwrt_backup/retrieve.py index bd26d88..e0cf569 100644 --- a/openwrt_backup/retrieve.py +++ b/openwrt_backup/retrieve.py @@ -2,7 +2,7 @@ from pathlib import Path from paramiko.client import SSHClient -from utils import exec_remote +from openwrt_backup.utils import exec_remote def make_backup_on_remote(client: SSHClient, tmp_path: Path): diff --git a/setup.py b/setup.py index 817ebec..bdc796c 100644 --- a/setup.py +++ b/setup.py @@ -10,6 +10,7 @@ setup( install_requires=INSTALL_REQUIRES, author="Raphael Roberts", author_email="raphael.roberts48@gmail.com", + entry_points={"console_scripts": ["openwrt-backup = openwrt_backup:main"]}, packages=["openwrt_backup"], package_data={"openwrt_backup": ["config.toml"]}, )