Skip to content

Commit 81582a9

Browse files
committed
fix(update): fix update requirements.txt bug
1 parent a423fc1 commit 81582a9

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

veadk/integrations/ve_faas/ve_faas.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@
1414

1515
import json
1616
import time
17-
17+
import shutil
18+
from pathlib import Path
19+
from cookiecutter.main import cookiecutter
20+
import veadk.integrations.ve_faas as vefaas
21+
from veadk.version import VERSION
1822
import requests
1923
import volcenginesdkcore
2024
import volcenginesdkvefaas
@@ -319,12 +323,6 @@ def _update_function_code(
319323
f"Start to update VeFaaS function {function_name} with path {path}."
320324
)
321325

322-
import shutil
323-
from pathlib import Path
324-
from cookiecutter.main import cookiecutter
325-
import veadk.integrations.ve_faas as vefaas
326-
from veadk.version import VERSION
327-
328326
user_proj_path = Path(path).resolve()
329327
template_dir = Path(vefaas.__file__).parent / "template"
330328
tmp_dir_name = f"{user_proj_path.name}_update_{formatted_timestamp()}"

0 commit comments

Comments
 (0)