Handle install directory not existing correctly.

This commit is contained in:
James Pace 2025-12-20 10:56:33 -05:00
parent a4b727def0
commit 7f804a3df7
1 changed files with 4 additions and 0 deletions

4
run.py
View File

@ -29,6 +29,10 @@ def export_vcs(project_directory, install_path):
cwd = Path(os.getcwd())
project_directory = cwd.parent.parent
# Make the install directory if it doesn't exist.
mkdir_command = "mkdir -p {}".format(install_path)
subprocess.run(mkdir_command, shell=True)
# Where we're going to save the output.
output_file = install_path + "/project_state.repos"