From eefb21faffa5c5366765207ebec917afdf9a3fd4 Mon Sep 17 00:00:00 2001 From: furtest Date: Sat, 3 Jan 2026 16:24:58 +0100 Subject: [PATCH] Mark local imports as such. Prefix local imports with "unisync." so they are not mistaken with external modules imports --- src/unisync/main.py | 11 ++++++----- src/unisync/runners.py | 4 ++-- src/unisync/synchroniser.py | 2 +- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/unisync/main.py b/src/unisync/main.py index e0e61a8..f77462d 100644 --- a/src/unisync/main.py +++ b/src/unisync/main.py @@ -2,12 +2,13 @@ # SPDX-License-Identifier: GPL-3.0-or-later import os -from argparser import create_argparser -from runners import unisync_sync, unisync_add, unisync_mount -from config import load_config -from synchroniser import Synchroniser from pathlib import Path -from paths import * + +from unisync.argparser import create_argparser +from unisync.runners import unisync_sync, unisync_add, unisync_mount +from unisync.config import load_config +from unisync.synchroniser import Synchroniser +from unisync.paths import * def main(): parser = create_argparser(unisync_sync, unisync_add, unisync_mount) diff --git a/src/unisync/runners.py b/src/unisync/runners.py index 899359e..fd599f8 100644 --- a/src/unisync/runners.py +++ b/src/unisync/runners.py @@ -1,8 +1,8 @@ # Copyright (C) 2025-2026 Paul Retourné # SPDX-License-Identifier: GPL-3.0-or-later -from synchroniser import Synchroniser -from paths import PathsManager +from unisync.synchroniser import Synchroniser +from unisync.paths import PathsManager def unisync_sync(synchroniser:Synchroniser, paths_manager:PathsManager): diff --git a/src/unisync/synchroniser.py b/src/unisync/synchroniser.py index d3aaaf6..6f5cd72 100644 --- a/src/unisync/synchroniser.py +++ b/src/unisync/synchroniser.py @@ -9,7 +9,7 @@ import logging from pathlib import Path -from errors import RemoteMountedError, InvalidMountError +from unisync.errors import RemoteMountedError, InvalidMountError logger = logging.getLogger(__name__)