mirror of
https://github.com/niess/python-appimage.git
synced 2025-07-28 16:21:14 +02:00
24 lines
447 B
Python
24 lines
447 B
Python
import os
|
|
|
|
from ..utils import deps
|
|
|
|
|
|
__all__ = ['execute']
|
|
|
|
|
|
def _unpack_args(args):
|
|
'''Unpack command line arguments
|
|
'''
|
|
return (args.binary,)
|
|
|
|
|
|
def execute(binary):
|
|
'''Print the location of a binary dependency
|
|
'''
|
|
if binary == 'appimagetool':
|
|
path = deps.ensure_appimagetool(dry=True)
|
|
else:
|
|
path = os.path.join(os.path.dirname(deps.PATCHELF), binary)
|
|
if os.path.exists(path):
|
|
print(path)
|