fix: cli use copfile
This commit is contained in:
@@ -131,7 +131,7 @@ class ServiceCreator:
|
||||
DEST_FILENAME = str(
|
||||
REPO_ROOT / "services" / service.dir_name / "current" / "qt" / self.ui_filename
|
||||
)
|
||||
copier.run_copy(src_path=CURRENT_FILENAME, dst_path=DEST_FILENAME)
|
||||
shutil.copyfile(CURRENT_FILENAME, DEST_FILENAME)
|
||||
|
||||
# ioc subs
|
||||
CURRENT_FILENAME = str(
|
||||
@@ -149,7 +149,7 @@ class ServiceCreator:
|
||||
/ "ioc"
|
||||
/ f"AGEBD-CPCL-{service.name_upper}_main.subs"
|
||||
)
|
||||
copier.run_copy(src_path=CURRENT_FILENAME, dst_path=DEST_FILENAME)
|
||||
shutil.copyfile(CURRENT_FILENAME, DEST_FILENAME)
|
||||
|
||||
# ioc template
|
||||
CURRENT_FILENAME = str(
|
||||
@@ -167,7 +167,7 @@ class ServiceCreator:
|
||||
/ "ioc"
|
||||
/ f"{service.name_upper}.template"
|
||||
)
|
||||
copier.run_copy(src_path=CURRENT_FILENAME, dst_path=DEST_FILENAME)
|
||||
shutil.copyfile(CURRENT_FILENAME, DEST_FILENAME)
|
||||
|
||||
try:
|
||||
self._render_new_service_templates(
|
||||
|
||||
Reference in New Issue
Block a user