neofetch_util.py 274 B

12345678910111213
  1. import os
  2. from subprocess import check_output
  3. import pkg_resources
  4. def get_command_path() -> str:
  5. """
  6. Get the absolute path of the neofetch command
  7. :return: Command path
  8. """
  9. return pkg_resources.resource_filename(__name__, 'scripts/neofetch_mod.sh')