mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-28 08:39:54 +02:00
Replaced od.path in init cli
This commit is contained in:
committed by
Cristian Vargas
parent
3fb410a604
commit
fa364ed728
@@ -6,12 +6,13 @@ import sys
|
|||||||
import argparse
|
import argparse
|
||||||
|
|
||||||
from typing import Optional, Dict, List, IO
|
from typing import Optional, Dict, List, IO
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
from ..config import OUTPUT_DIR
|
from ..config import OUTPUT_DIR
|
||||||
|
|
||||||
from importlib import import_module
|
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
|
# these common commands will appear sorted before any others for ease-of-use
|
||||||
meta_cmds = ('help', 'version')
|
meta_cmds = ('help', 'version')
|
||||||
|
Reference in New Issue
Block a user