mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-23 11:17:02 -04:00
Replaced od.path in init cli
This commit is contained in:
parent
3fb410a604
commit
fa364ed728
1 changed files with 2 additions and 1 deletions
|
@ -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')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue