Mark local imports as such.

Prefix local imports with "unisync." so they are not mistaken with
external modules imports
This commit is contained in:
2026-01-03 16:24:58 +01:00
parent 941c467fc2
commit eefb21faff
3 changed files with 9 additions and 8 deletions

View File

@@ -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)

View File

@@ -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):

View File

@@ -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__)