parameters: (self, profile)
docstring: Set the profile path and do any cleanup or platform specific hacks
docstring_summary: Set the profile path and do any cleanup or platform specific hacks
docstring_tokens: Set the profile path and do any cleanup or platform specific hacks
function: def set_profile(self, profile):
          """Set the profile path and do any cleanup or platform specific hacks"""
          if sys.platform == 'linux2':
              if sys.platform == 'linux2':
                  try:
                      login = os.getlogin()
                  except OSError:
                      login = pwd.getpwuid(os.geteuid())[0]
              output = commands.getoutput('chown -R %s:%s %s' % (login, login, profile))
              if output != '':
                  print output
              
          self.profile = profile
function_tokens: def set_profile ( self , profile ) : if sys . platform == 'linux2' : if sys . platform == 'linux2' : try : login = os . getlogin ( ) except OSError : login = pwd . getpwuid ( os . geteuid ( ) ) [ 0 ] output = commands . getoutput ( 'chown -R %s:%s %s' % ( login , login , profile ) ) if output != '' : print output self . profile = profile