clearml-server/apiserver/apierrors/autogen/__init__.py

5 lines
180 B
Python
Raw Normal View History

2019-06-10 21:24:35 +00:00
def generate(path, error_codes):
from .generator import Generator
from pathlib import Path
Generator(Path(path) / 'errors', format_pep8=False).make_errors(error_codes)