working on correct path joining with os

master
polymurph 3 years ago
parent ad4e8d408f
commit b766e50abe

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

Loading…
Cancel
Save