Move backup binary artifact to seperate folder

This commit is contained in:
Donncha Ó Cearbhaill
2022-01-07 17:08:46 +01:00
parent 54963b0b59
commit 3f8dade610
9 changed files with 14 additions and 13 deletions

View File

@@ -5,8 +5,7 @@ def get_artifact(fname):
"""
Return the artifact path in the artifact folder
"""
DATA_FOLDER = os.path.join(os.path.dirname(__file__), "artifacts")
fpath = os.path.join(DATA_FOLDER, fname)
fpath = os.path.join(get_artifact_folder(), fname)
if os.path.isfile(fpath):
return fpath
return
@@ -16,6 +15,9 @@ def get_artifact_folder():
return os.path.join(os.path.dirname(__file__), "artifacts")
def get_backup_folder():
return os.path.join(os.path.dirname(__file__), "artifacts", "ios_backup")
def init_setup():
"""
init data to have a clean state before testing