[O] tools: Use module instead of custom search path
This commit is contained in:
parent
2ca7103f1a
commit
4d073df750
3 changed files with 3 additions and 8 deletions
|
@ -1,6 +1,6 @@
|
||||||
from hyfetch.color_scale import test_color_scale
|
from hyfetch.color_scale import test_color_scale
|
||||||
from hyfetch.color_util import RGB, printc
|
from hyfetch.color_util import RGB, printc
|
||||||
from hyfetch.neofetch_util import get_command_path, run_neofetch
|
from hyfetch.neofetch_util import get_command_path
|
||||||
from hyfetch.presets import PRESETS
|
from hyfetch.presets import PRESETS
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -6,16 +6,13 @@ import re
|
||||||
import shlex
|
import shlex
|
||||||
import stat
|
import stat
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from packaging import version as pv
|
|
||||||
|
|
||||||
sys.path.append(str(Path(__file__).parent.parent))
|
from packaging import version as pv
|
||||||
|
|
||||||
from tools.list_distros import generate_help
|
from tools.list_distros import generate_help
|
||||||
from tools.reformat_readme import reformat_readme
|
from tools.reformat_readme import reformat_readme
|
||||||
|
|
||||||
|
|
||||||
NEOFETCH_NEW_VERSION = ""
|
NEOFETCH_NEW_VERSION = ""
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -6,14 +6,11 @@ List distributions supported by neofetch
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import string
|
import string
|
||||||
import sys
|
|
||||||
import textwrap
|
import textwrap
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
import regex
|
import regex
|
||||||
|
|
||||||
sys.path.append(str(Path(__file__).parent.parent))
|
|
||||||
|
|
||||||
from hyfetch.distro import AsciiArt
|
from hyfetch.distro import AsciiArt
|
||||||
|
|
||||||
RE_SPLIT = regex.compile('EOF[ \n]*?;;')
|
RE_SPLIT = regex.compile('EOF[ \n]*?;;')
|
||||||
|
@ -119,6 +116,7 @@ from hyfetch.distro import AsciiArt
|
||||||
|
|
||||||
def export_distros():
|
def export_distros():
|
||||||
distros = parse_ascii_distros()
|
distros = parse_ascii_distros()
|
||||||
|
print(len(distros))
|
||||||
[export_distro(d) for d in distros]
|
[export_distro(d) for d in distros]
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue