def get_entry_point_abs_path(pack=None, entry_point=None):
 if (not entry_point):
  return None
 if os.path.isabs(entry_point):
  pack_base_path = get_pack_base_path(pack_name=pack)
  common_prefix = os.path.commonprefix([pack_base_path, entry_point])
  if (common_prefix != pack_base_path):
   raise ValueError(('Entry point file "%s" is located outside of the pack directory' % entry_point))
  return entry_point
 entry_point_abs_path = get_pack_resource_file_abs_path(pack_ref=pack, resource_type='action', file_path=entry_point)
 return entry_point_abs_path

def get_entry_point_abs_path ( pack = None , entry_point = None ) : if ( not entry_point ) : return None if os . path . isabs ( entry_point ) : pack_base_path = get_pack_base_path ( pack_name = pack ) common_prefix = os . path . commonprefix ( [ pack_base_path , entry_point ] ) if ( common_prefix != pack_base_path ) : raise ValueError ( ( 'Entry point file "%s" is located outside of the pack directory' % entry_point ) ) return entry_point entry_point_abs_path = get_pack_resource_file_abs_path ( pack_ref = pack , resource_type = 'action' , file_path = entry_point ) return entry_point_abs_path
return full absolute path of an action entry point in a pack .