Create automatic.py
Browse files- automatic.py +10 -0
automatic.py
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import subprocess
|
| 2 |
+
|
| 3 |
+
repo_url = 'https://github.com/vladmandic/automatic'
|
| 4 |
+
dest_path = './Repo'
|
| 5 |
+
# Run the git clone command
|
| 6 |
+
try:
|
| 7 |
+
subprocess.run(['git', 'clone', repo_url, dest_path], check=True)
|
| 8 |
+
print('Clone operation completed successfully! 😄')
|
| 9 |
+
except subprocess.CalledProcessError:
|
| 10 |
+
print('Clone operation failed! 😞')
|