(self, profile)
Set the profile path and do any cleanup or platform specific hacks
Set the profile path and do any cleanup or platform specific hacks
Set the profile path and do any cleanup or platform specific hacks
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
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