Codebase list xapp / 5b230cf meson-scripts / module_xinit_fix_perms.py
5b230cf

Tree @5b230cf (Download .tar.gz)

module_xinit_fix_perms.py @5b230cfraw · history · blame

#!/usr/bin/python3

import os
import sys
import subprocess

if os.environ.get('DESTDIR'):
    file = "%s/%s/%s" % (os.environ.get('DESTDIR'), sys.argv[1], sys.argv[2])
else:
    file = os.path.join(sys.argv[1], sys.argv[2])

subprocess.call(['sh', '-c', 'chmod +x %s' % file])

exit(0)