def convert(self, value, param, ctx):
        name = os.path.basename(value)
        directory = os.path.join(
            os.path.dirname(value), name.replace('_', '-')
        )
        if valid_underscore_name(name):
            return (name, directory)
        else:
            self.fail('%s is not a valid project name' % name, param, ctx)
dataset/ETHPy150Open fgimian/flaskage/flaskage/helpers.py/ProjectNameParamType.convert/original