now symlinking only to know extensions (cause trouble for temp files like *.py~ and the like)

This commit is contained in:
Martin Diehl 2014-04-09 10:40:10 +00:00
parent ac3bd2d725
commit 6550729b49
1 changed files with 7 additions and 6 deletions

View File

@ -26,6 +26,7 @@ bin_link = ['pre','post','misc']
for myDir in bin_link:
myDir = os.path.abspath(os.path.join(baseDir,myDir))
for myFile in os.listdir(myDir):
if os.path.splitext(myFile)[1] in ['.py']: #only link to know extension, otherwise .py.bak or somethink like that is uses
src = os.path.abspath(os.path.join(myDir,myFile))
sym_link = os.path.abspath(os.path.join(binDir,os.path.splitext(myFile)[0]))
print sym_link,'-->',src