parent
ab066f9da6
commit
3186e3fd64
@ -0,0 +1,32 @@
|
||||
'''
|
||||
KED Builder Script
|
||||
'''
|
||||
import sys
|
||||
import os
|
||||
|
||||
|
||||
|
||||
def build():
|
||||
argvLen = len(sys.argv)
|
||||
if argvLen < 2:
|
||||
print('please enter a valid target device')
|
||||
print('currently available target devices...')
|
||||
os.chdir(os.getcwd() + '\\csl')
|
||||
# get top level folder names in csl which represent all available target devices
|
||||
dirlist = next(os.walk('.'))[1]
|
||||
|
||||
for dir in dirlist:
|
||||
print(dir)
|
||||
else:
|
||||
print('todo')
|
||||
|
||||
def autoBuild():
|
||||
return
|
||||
|
||||
scriptDirectory = os.getcwd()
|
||||
projectDirectory = scriptDirectory + '\\..'
|
||||
buildDirectory = projectDirectory + '\\ked_build'
|
||||
|
||||
os.chdir(scriptDirectory)
|
||||
|
||||
build()
|
Loading…
Reference in new issue