Mark local imports as such.
Prefix local imports with "unisync." so they are not mistaken with external modules imports
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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__)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user