Update initialize.py

This commit is contained in:
bjoernellens1 2023-05-26 11:45:05 +02:00 committed by GitHub
parent 544649845c
commit 464f7e86c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,6 +32,9 @@ class GitCloner:
# Pull the latest changes from the repository # Pull the latest changes from the repository
subprocess.check_output(['git', 'pull']) subprocess.check_output(['git', 'pull'])
#Go back one level
os.chdir(os.path.join(self.maindir, 'src'))
print(f"Successfully updated repository '{repo_name}'.") print(f"Successfully updated repository '{repo_name}'.")
except subprocess.CalledProcessError as e: except subprocess.CalledProcessError as e:
print(f"Failed to update repository '{repo_name}': {e}") print(f"Failed to update repository '{repo_name}': {e}")