[+] Get ascii lines
This commit is contained in:
parent
9dce0d9667
commit
3f0331a307
1 changed files with 10 additions and 0 deletions
|
|
@ -11,3 +11,13 @@ def get_command_path() -> str:
|
||||||
:return: Command path
|
:return: Command path
|
||||||
"""
|
"""
|
||||||
return pkg_resources.resource_filename(__name__, 'scripts/neofetch_mod.sh')
|
return pkg_resources.resource_filename(__name__, 'scripts/neofetch_mod.sh')
|
||||||
|
|
||||||
|
|
||||||
|
def get_distro_ascii_lines() -> int:
|
||||||
|
"""
|
||||||
|
Get how many lines are in the distro ascii
|
||||||
|
|
||||||
|
:return: Number of lines
|
||||||
|
"""
|
||||||
|
out = check_output([get_command_path(), "print_ascii"])
|
||||||
|
return len(out.decode().strip().split('\n'))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue