Browse Source

Replaced od.path in init cli

Angel Rey 5 years ago
parent
commit
fa364ed728
1 changed files with 2 additions and 1 deletions
  1. 2 1
      archivebox/cli/__init__.py

+ 2 - 1
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')