Gitlab Community Edition Instance

Commit df0b77d5 authored by Marcel Hellkamp's avatar Marcel Hellkamp
Browse files

Fix imports

parent 8fd368a7
if __name__ == '__main__':
from .cli import main
from pycdstar3.cli import main
import sys
sys.exit(main() or 0)
......@@ -11,7 +11,6 @@ from pycdstar3 import __version__ as VERSION
from pycdstar3.client import ApiError
from pycdstar3.cli._utils import Printer
from pycdstar3.cli.commands import BUILDIN_COMMANDS
from pycdstar3.cli.context import CliContext
__ALL__ = ["main", "printer"]
......@@ -61,6 +60,7 @@ def main(args=None):
return 1
try:
from pycdstar3.cli.context import CliContext
ctx = CliContext(workdir=".")
if opts.config:
ctx.load_config(opts.config)
......
import os
import re
import sys
def walk_up(start):
......
......@@ -3,8 +3,8 @@ Manage access control lists (ACL)
"""
import os
from ...client import FormUpdate
from .. import printer, CliError
from pycdstar3.client import FormUpdate
from pycdstar3.cli import printer
def register(subparsers):
......
......@@ -4,8 +4,8 @@ Get (download) a single file from an archive.
import os
import sys
from .._utils import hbytes
from .. import printer, CliError
from pycdstar3.cli._utils import hbytes
from pycdstar3.cli import printer, CliError
def register(subparsers):
......
......@@ -12,8 +12,8 @@ import configparser
import os
import re
from .. import printer
from ..context import CONFIG_NAMES
from pycdstar3.cli import printer
from pycdstar3.cli.context import CONFIG_NAMES
def register(subparsers):
......
......@@ -3,8 +3,8 @@ Upload one or more files to an existing archive.
"""
import os
from .. import printer, CliError
from .._utils import compile_glob, hbytes
from pycdstar3.cli import printer, CliError
from pycdstar3.cli._utils import compile_glob, hbytes
def register(subparsers):
......
......@@ -3,9 +3,9 @@ import urllib.parse
from contextlib import contextmanager
from typing import Tuple, Optional
from . import printer, CliError
from ._utils import walk_up
from ..client import CDStar
from pycdstar3.cli import printer, CliError
from pycdstar3.cli._utils import walk_up
from pycdstar3.client import CDStar
METADIR_NAME = '.cdstar'
CONFIG_NAMES = ["cdstar.conf", ".cdstar.conf"]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment