def make_executable(script_path):
 status = os.stat(script_path)
 os.chmod(script_path, (status.st_mode | stat.S_IEXEC))

def make_executable ( script_path ) : status = os . stat ( script_path ) os . chmod ( script_path , ( status . st_mode | stat . S_IEXEC ) )
makes script_path executable .