Skip to content

Commit 7f6464a

Browse files
committed
Updated
1 parent 80d1488 commit 7f6464a

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

dlt_init_openapi/renderer/default/__init__.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
Default renderer
33
"""
44

5-
import pathlib
65
import shutil
76
import subprocess
87

@@ -14,10 +13,6 @@
1413
from dlt_init_openapi.renderer.base_renderer import BaseRenderer
1514
from dlt_init_openapi.utils import misc
1615

17-
# Import REST_API_SOURCE_LOCATION separately to avoid mypy issues
18-
REST_API_SOURCE_LOCATION = str(pathlib.Path(__file__).parent.parent.parent.resolve() / "rest_api")
19-
20-
2116
FILE_ENCODING = "utf-8"
2217
TEMPLATE_FILTERS = {
2318
"snakecase": misc.snake_case,
@@ -72,9 +67,6 @@ def run(self, openapi: OpenapiParser, dry: bool = False) -> None:
7267
self._build_meta_files()
7368
self._run_post_hooks()
7469

75-
# copy rest api source into project dir
76-
shutil.copytree(REST_API_SOURCE_LOCATION, str(self.config.project_dir / "rest_api"))
77-
7870
def _build_meta_files(self) -> None:
7971
requirements_template = self.env.get_template("requirements.txt.j2")
8072
req_path = self.config.project_dir / "requirements.txt"

0 commit comments

Comments
 (0)