windowsInstall - updated for tango split dirs

parent 753502fa
......@@ -23,7 +23,7 @@ if platform.machine() == 'AMD64':
('camera/pco/build/msvc/9.0/liblimapco/x64/Release/liblimapco.dll','Lima'),
('camera/pco/sdkPco/bin64/SC2_Cam.dll','Lima'),
('camera/pco/sdkPco/bin64/sc2_cl_me4.dll','Lima'),
('applications/tango/camera/Pco.py','camera'),
('applications/tango/python/camera/Pco.py','camera'),
('sip/pco/limapco.pyd','Lima')],
}
else:
......@@ -40,7 +40,7 @@ else:
('camera/pco/build/msvc/9.0/liblimapco/Release/liblimapco.dll','Lima'),
('camera/pco/sdkPco/bin/SC2_Cam.dll','Lima'),
('camera/pco/sdkPco/bin/sc2_cl_me4.dll','Lima'),
('applications/tango/camera/Pco.py','camera'),
('applications/tango/python/camera/Pco.py','camera'),
('sip/pco/limapco.pyd','Lima')],
'perkinelmer' : [('camera/perkinelmer/python/PerkinElmer.py','Lima'),
('camera/perkinelmer/build/msvc/9.0/LibPerkinElmer/Release/liblimaperkinelmer.dll','Lima'),
......@@ -58,14 +58,14 @@ else:
}
#Add Src
module2Installfiles.update({
'tango-core' : [('applications/tango/LimaCCDs.py',''),
('applications/tango/AttrHelper.py',''),
('applications/tango/EnvHelper.py',''),
('applications/tango/camera/__init__.py','camera'),
('applications/tango/plugins','')],
'tango-simulator' : [('applications/tango/camera/Simulator.py','camera')],
'tango-perkinelmer' : [('applications/tango/camera/PerkinElmer.py','camera')],
'tango-dexela' : [('applications/tango/camera/Dexela.py','camera')],
'tango-core' : [('applications/tango/python/LimaCCDs.py',''),
('applications/tango/python/AttrHelper.py',''),
('applications/tango/python/EnvHelper.py',''),
('applications/tango/python/camera/__init__.py','camera'),
('applications/tango/python/plugins','')],
'tango-simulator' : [('applications/tango/python/camera/Simulator.py','camera')],
'tango-perkinelmer' : [('applications/tango/python/camera/PerkinElmer.py','camera')],
'tango-dexela' : [('applications/tango/python/camera/Dexela.py','camera')],
}
)
......@@ -81,7 +81,10 @@ def copyModule(filesList,baseDestPath) :
base,srcDir = os.path.split(src)
dst = os.path.join(dst,srcDir)
if os.access(dst,os.F_OK) :
shutil.rmtree(dst)
if os.path.isdir(dst):
shutil.rmtree(dst)
else:
os.unlink(dst)
shutil.copytree(src,dst)
print 'Copytree',src,dst
elif not os.access(src,os.F_OK) :
......
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