# Path: acpype/cli.py
# def _chk_py_ver():
# def _handle_exception(level):
# def init_main(binaries: Dict[str, str] = binaries, argv: Optional[List[str]] = None):


import os
import random
import string
import sys
import time
import traceback
from shutil import rmtree
from ccpnmr.format.converters import Mol2Format  # type: ignore
from ccpnmr.format.converters import PdbFormat  # type: ignore
from acpype.cli import ACTopol, elapsedTime, header



letters = string.ascii_letters


def dirWalk(adir):
    "walk all files for a dir"
    for f in os.listdir(adir):
        fullpath = os.path.abspath(os.path.join(adir, f))

# Path: acpype/cli.py
# def _chk_py_ver():
# def _handle_exception(level):
# def init_main(binaries: Dict[str, str] = binaries, argv: Optional[List[str]] = None):


# Path: legacy/CcpnToAcpype.py
import os
import random
import string
import sys
import time
import traceback
from shutil import rmtree
from ccpnmr.format.converters import Mol2Format  # type: ignore
from ccpnmr.format.converters import PdbFormat  # type: ignore
from acpype.cli import ACTopol, elapsedTime, header




letters = string.ascii_letters


def dirWalk(adir):
    "walk all files for a dir"
    for f in os.listdir(adir):
        fullpath = os.path.abspath(os.path.join(adir, f))

        if os.path.isdir(fullpath) and not os.path.islink(fullpath):