setup.py
def run(self):
        '''Run clean.'''
        relative_resource_path = os.path.relpath(
            RESOURCE_TARGET_PATH, ROOT_PATH
        )
        if os.path.exists(relative_resource_path):
            os.remove(relative_resource_path)
        else:
            distutils.log.warn(
                '\'{0}\' does not exist -- can\'t clean it'
                .format(relative_resource_path)
            )

        relative_compiled_resource_path = relative_resource_path + 'c'
        if os.path.exists(relative_compiled_resource_path):
            os.remove(relative_compiled_resource_path)
        else:
            distutils.log.warn(
                '\'{0}\' does not exist -- can\'t clean it'
                .format(relative_compiled_resource_path)
            )
        CleanCommand.run(self)
def run(self):
        '''Run clean.'''
        relative_resource_path = os.path.relpath(
            RESOURCE_TARGET_PATH, ROOT_PATH
        )
        if os.path.exists(relative_resource_path):
            os.remove(relative_resource_path)
        else:
            distutils.log.warn(
                '\'{0}\' does not exist -- can\'t clean it'
                .format(relative_resource_path)
            )

        relative_compiled_resource_path = relative_resource_path + 'c'
        if os.path.exists(relative_compiled_resource_path):
            os.remove(relative_compiled_resource_path)
        else:
            distutils.log.warn(
                '\'{0}\' does not exist -- can\'t clean it'
                .format(relative_compiled_resource_path)
            )
        CleanCommand.run(self)
def run ( self ) : relative_resource_path = os . path . relpath ( RESOURCE_TARGET_PATH , ROOT_PATH ) if os . path . exists ( relative_resource_path ) : os . remove ( relative_resource_path ) else : distutils . log . warn ( '\'{0}\' does not exist -- can\'t clean it' . format ( relative_resource_path ) ) relative_compiled_resource_path = relative_resource_path + 'c' if os . path . exists ( relative_compiled_resource_path ) : os . remove ( relative_compiled_resource_path ) else : distutils . log . warn ( '\'{0}\' does not exist -- can\'t clean it' . format ( relative_compiled_resource_path ) ) CleanCommand . run ( self )
Run clean.
Run clean .