[+] Get command path in package resource
This commit is contained in:
@@ -0,0 +1,13 @@
|
|||||||
|
import os
|
||||||
|
from subprocess import check_output
|
||||||
|
|
||||||
|
import pkg_resources
|
||||||
|
|
||||||
|
|
||||||
|
def get_command_path() -> str:
|
||||||
|
"""
|
||||||
|
Get the absolute path of the neofetch command
|
||||||
|
|
||||||
|
:return: Command path
|
||||||
|
"""
|
||||||
|
return pkg_resources.resource_filename(__name__, 'scripts/neofetch_mod.sh')
|
||||||
Symlink
+1
@@ -0,0 +1 @@
|
|||||||
|
../../neofetch
|
||||||
Reference in New Issue
Block a user