-> clean windows shells script

-> new Processlib version
parent 8142f182
Processlib @ d0e8adde
Subproject commit 1ee3704664058c5a427beee7706c6e824daf2f67
Subproject commit d0e8adde57fdd910b778f8db8236c88af81aee78
......@@ -32,11 +32,6 @@ module2Installfiles = {
def copyModule(filesList,baseDestPath) :
for src,dest in filesList:
dst = os.path.join(baseDestPath,dest)
print "---------- src", src
print "---------- dst", dst
print "--------- dest", dest
print "---------- base", baseDestPath
if not os.access(dst,os.F_OK) :
print 'Makedir',dst
......@@ -52,7 +47,6 @@ def copyModule(filesList,baseDestPath) :
elif not os.access(src,os.F_OK) :
base,srcDir = os.path.split(src)
dstFile = os.path.join(dst,srcDir)
print "--------- dstFile", dstFile
f = file(dstFile,'w')
f.close()
print 'Create empty file',dstFile
......@@ -99,7 +93,6 @@ if __name__ == '__main__':
module_list += option.module_list
module_list += ["core"]
print "--------- mod list", module_list
for moduleName in set(module_list) :
filesList = module2Installfiles.get(moduleName,None)
if filesList:
......
......@@ -36,16 +36,13 @@ def getModuleConfig() :
config = {}
for line in f:
if line.startswith('COMPILE') :
print "----- line", line
modName,active = line.split('=')
modName = '_'.join(modName.split('_')[1:])
modName = modName.lower()
if modName in availableModule:
config[modName] = bool(int(active))
print "-------- config", config
os.chdir('..')
print "-------- config", config
return config
def compileModule(config) :
......@@ -64,19 +61,12 @@ if __name__ == '__main__':
help = 'Configure sip modules')
(options,args) = parser.parse_args()
if options.config_flag:
print "----------- sys.path.insert"
sys.path.insert(0,'sip')
print "----------- import sip\configure.py"
import configure
os.chdir('sip')
print "----------- sip\configure.py -> main"
configure.main()
print "----------- sip\configure.py -> main - returned"
os.chdir('..')
sys.path.pop(0)
else:
print "----------- getModuleConfig()"
config = getModuleConfig()
print "----------- compileModule()"
compileModule(config)
print "----------- end"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment