parameters: ()
return_statement: return 0
docstring: Updates Loader File
      @precondition: MYPROFILE has been set
      @postcondition: on disk profile loader is updated
      @return: 0 if no error, non zero for error condition
docstring_summary: Updates Loader File
      @precondition: MYPROFILE has been set
      @postcondition: on disk profile loader is updated
      @return: 0 if no error, non zero for error condition
docstring_tokens: Updates Loader File @precondition : MYPROFILE has been set @postcondition : on disk profile loader is updated @return : 0 if no error non zero for error condition
function: def UpdateProfileLoader():
      """Updates Loader File
      @precondition: MYPROFILE has been set
      @postcondition: on disk profile loader is updated
      @return: 0 if no error, non zero for error condition
  
      """
      writer = util.GetFileWriter(GetLoader())
      if writer == -1:
          return 1
  
      prof_name = Profile_Get('MYPROFILE')
      if not prof_name or not os.path.isabs(prof_name):
          prof_name = CONFIG['PROFILE_DIR'] + 'default.ppb'
  
      if not os.path.exists(prof_name):
          prof_name = os.path.join(CONFIG['CONFIG_DIR'],
                                   os.path.basename(prof_name))
          Profile_Set('MYPROFILE', prof_name)
  
      # Use just the relative profile name for local(portable) config paths
      prof_name = os.path.basename(prof_name)
  
      writer.write(prof_name)
      writer.write(u"\nVERSION\t" + VERSION)
      writer.close()
      return 0
function_tokens: def UpdateProfileLoader ( ) : writer = util . GetFileWriter ( GetLoader ( ) ) if writer == - 1 : return 1 prof_name = Profile_Get ( 'MYPROFILE' ) if not prof_name or not os . path . isabs ( prof_name ) : prof_name = CONFIG [ 'PROFILE_DIR' ] + 'default.ppb' if not os . path . exists ( prof_name ) : prof_name = os . path . join ( CONFIG [ 'CONFIG_DIR' ] , os . path . basename ( prof_name ) ) Profile_Set ( 'MYPROFILE' , prof_name ) # Use just the relative profile name for local(portable) config paths prof_name = os . path . basename ( prof_name ) writer . write ( prof_name ) writer . write ( u"\nVERSION\t" + VERSION ) writer . close ( ) return 0