From fa364ed728b3f6f458938a2abfd3d3a36b763299 Mon Sep 17 00:00:00 2001 From: Angel Rey Date: Wed, 30 Sep 2020 14:43:14 -0500 Subject: [PATCH] Replaced od.path in init cli --- archivebox/cli/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/archivebox/cli/__init__.py b/archivebox/cli/__init__.py index aa26715b..83055e8e 100644 --- a/archivebox/cli/__init__.py +++ b/archivebox/cli/__init__.py @@ -6,12 +6,13 @@ import sys import argparse from typing import Optional, Dict, List, IO +from pathlib import Path from ..config import OUTPUT_DIR from importlib import import_module -CLI_DIR = os.path.dirname(os.path.abspath(__file__)) +CLI_DIR = Path(__file__).resolve().parent # these common commands will appear sorted before any others for ease-of-use meta_cmds = ('help', 'version')