def resolve_addon_path(addon_config, file_name):
 source_path = os.path.join(settings.ADDON_PATH, addon_config.short_name, 'static', file_name)
 if os.path.exists(source_path):
  return os.path.join('/', 'static', 'public', 'js', addon_config.short_name, file_name)
 return None

def resolve_addon_path ( addon_config , file_name ) : source_path = os . path . join ( settings . ADDON_PATH , addon_config . short_name , 'static' , file_name ) if os . path . exists ( source_path ) : return os . path . join ( '/' , 'static' , 'public' , 'js' , addon_config . short_name , file_name ) return None
check for addon asset in source directory ; if file is found .