File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ def create_new_project(project_name_path: str):
56
56
project_name = project_name_path .split (PATH_SEPARATOR )[- 1 ]
57
57
58
58
response = requests .get (
59
- 'https://github.com/zabbix-byte/PyPulse-HelloWord -Project/archive/refs/heads/main.zip' )
59
+ 'https://github.com/zabbix-byte/PyPulse-HelloWorld -Project/archive/refs/heads/main.zip' )
60
60
f = open (os .path .join ('tmp-project' , 'temp.zip' ), "wb" )
61
61
f .write (response .content )
62
62
f .close ()
@@ -65,11 +65,11 @@ def create_new_project(project_name_path: str):
65
65
zip_ref .extractall ('tmp-project' )
66
66
67
67
shutil .copytree (os .path .join (
68
- 'tmp-project' , 'PyPulse-HelloWord -Project-main' ), project_name_path )
68
+ 'tmp-project' , 'PyPulse-HelloWorld -Project-main' ), project_name_path )
69
69
shutil .rmtree ('tmp-project' )
70
70
71
71
### Changing names
72
- path_to_project_old_name = os .path .join (project_name_path , 'HelloWord .py' )
72
+ path_to_project_old_name = os .path .join (project_name_path , 'HelloWorld .py' )
73
73
os .rename (path_to_project_old_name , os .path .join (project_name_path , f'{ project_name_path } .py' ))
74
74
75
75
### Repvomg files
You can’t perform that action at this time.
0 commit comments