working on correct path joining with os

master
polymurph 2 years ago
parent ad4e8d408f
commit b766e50abe

@ -60,8 +60,14 @@ def flash(TARGET_DEVICE):
###########################################################################################################################
scriptDirectory = os.getcwd()
projectDirectory = scriptDirectory + '\\..'
buildDirectory = projectDirectory + '\\ked_build'
projectDirectory = os.path.join(scriptDirectory, '..')
buildDirectory = os.path.join(projectDirectory, 'ked_build')
#projectDirectory = scriptDirectory + '\\..'
#buildDirectory = projectDirectory + '\\ked_build'
print(scriptDirectory)
print(projectDirectory)
print(buildDirectory)
os.chdir(scriptDirectory)
@ -124,5 +130,5 @@ if not os.path.exists(buildDirectory):
CSL_TO_USE = sys.argv[1]
build(CSL_TO_USE)
flasher.flash(CSL_TO_USE,buildDirectory)
#flasher.flash(CSL_TO_USE,buildDirectory)

Loading…
Cancel
Save