#NEWLINE# def get_entry_point_abs_path( pack = None , entry_point = None ) : #NEWLINE# #INDENT# '\n    Return full absolute path of an action entry point in a pack.\n\n    :param pack_name: Content pack name.\n    :type pack_name: ``str``\n    :param entry_point: Action entry point.\n    :type entry_point: ``str``\n\n    :rtype: ``str``\n    ' #NEWLINE# if ( not entry_point ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# if os . path . isabs ( entry_point ) : #NEWLINE# #INDENT# pack_base_path = get_pack_base_path ( pack_name = pack ) #NEWLINE# common_prefix = os . path . commonprefix ( [ pack_base_path , entry_point ] ) #NEWLINE# if ( common_prefix != pack_base_path ) : #NEWLINE# #INDENT# raise ValueError ( ( 'Entry point file "%s" is located outside of the pack directory' % entry_point ) ) #NEWLINE# #UNINDENT# return entry_point #NEWLINE# #UNINDENT# entry_point_abs_path = get_pack_resource_file_abs_path ( pack_name = pack , resource_type = 'action' , file_path = entry_point ) #NEWLINE# return entry_point_abs_path