Handle install directory not existing correctly.
This commit is contained in:
parent
a4b727def0
commit
7f804a3df7
4
run.py
4
run.py
|
|
@ -29,6 +29,10 @@ def export_vcs(project_directory, install_path):
|
||||||
cwd = Path(os.getcwd())
|
cwd = Path(os.getcwd())
|
||||||
project_directory = cwd.parent.parent
|
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.
|
# Where we're going to save the output.
|
||||||
output_file = install_path + "/project_state.repos"
|
output_file = install_path + "/project_state.repos"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue