def make_script_path(script):
 s_path = None
 path = cfg.script_dir.get_path()
 if (path and script):
  if (script.lower() not in ('none', 'default')):
   s_path = os.path.join(path, script)
   if (not os.path.exists(s_path)):
    s_path = None
 return s_path

def make_script_path ( script ) : s_path = None path = cfg . script_dir . get_path ( ) if ( path and script ) : if ( script . lower ( ) not in ( 'none' , 'default' ) ) : s_path = os . path . join ( path , script ) if ( not os . path . exists ( s_path ) ) : s_path = None return s_path
return full script path .