after a somewhat lengthy discussion with Philip about usability and developability and general file-naming philosophy we think that we found a compromise on the "to-dot-py or not-to-dot-py" issue:
symlinks in DAMASK_ROOT/bin do not carry the extension, but the source files do. Hope that results in the maximum number of happy developers and users.
This commit is contained in:
parent
6e96ea0e6d
commit
06176873e4
|
@ -11,31 +11,31 @@ import os,sys,glob
|
||||||
|
|
||||||
bin_link = { \
|
bin_link = { \
|
||||||
'pre' : [
|
'pre' : [
|
||||||
'marc_addUserOutput',
|
'marc_addUserOutput.py',
|
||||||
'mentat_pbcOnBoxMesh',
|
'mentat_pbcOnBoxMesh.py',
|
||||||
'mentat_spectralBox',
|
'mentat_spectralBox.py',
|
||||||
'patchFromReconstructedBoundaries',
|
'patchFromReconstructedBoundaries.py',
|
||||||
'spectral_geomCheck',
|
'spectral_geomCheck.py',
|
||||||
'spectral_minimalSurface',
|
'spectral_minimalSurface.py',
|
||||||
'spectral_vicinityOffset',
|
'spectral_vicinityOffset.py',
|
||||||
'voronoi_randomSeeding',
|
'voronoi_randomSeeding.py',
|
||||||
'voronoi_tessellation',
|
'voronoi_tessellation.py',
|
||||||
],
|
],
|
||||||
'post' : [
|
'post' : [
|
||||||
'3Dvisualize',
|
'3Dvisualize.py',
|
||||||
'addCauchy',
|
'addCauchy.py',
|
||||||
'addDeterminant',
|
'addDeterminant.py',
|
||||||
'addDivergence',
|
'addDivergence.py',
|
||||||
'addMises',
|
'addMises.py',
|
||||||
'addNorm',
|
'addNorm.py',
|
||||||
'addStrainTensors',
|
'addStrainTensors.py',
|
||||||
'addCompatibilityMismatch',
|
'addCompatibilityMismatch.py',
|
||||||
'averageDown',
|
'averageDown.py',
|
||||||
'mentat_colorMap',
|
'mentat_colorMap.py',
|
||||||
'postResults',
|
'postResults.py',
|
||||||
'spectral_iterationCount',
|
'spectral_iterationCount.py',
|
||||||
'spectral_convergence',
|
'spectral_convergence.py',
|
||||||
'spectral_scaleGeom',
|
'spectral_scaleGeom.py',
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -56,15 +56,18 @@ execute = { \
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
homedir = os.getenv('HOME')
|
#homedir = os.getenv('HOME')
|
||||||
basedir = os.path.join(os.path.dirname(sys.argv[0]),'..')
|
#basedir = os.path.join(os.path.dirname(sys.argv[0]),'..')
|
||||||
|
homedir = os.getenv('DAMASK_ROOT')
|
||||||
|
basedir = os.getenv('DAMASK_ROOT')+'/processing/'
|
||||||
|
|
||||||
for dir in bin_link:
|
for dir in bin_link:
|
||||||
for file in bin_link[dir]:
|
for file in bin_link[dir]:
|
||||||
src = os.path.abspath(os.path.join(basedir,dir,file))
|
src = os.path.abspath(os.path.join(basedir,dir,file))
|
||||||
if (file == ''):
|
if (file == ''):
|
||||||
dst = os.path.abspath(os.path.join(homedir,'bin',dir))
|
dst = os.path.abspath(os.path.join(homedir,'bin',dir))
|
||||||
else:
|
else:
|
||||||
dst = os.path.abspath(os.path.join(homedir,'bin',file))
|
dst = os.path.abspath(os.path.join(homedir,'bin',os.path.splitext(file)[0]))
|
||||||
print src,'-->',dst
|
print src,'-->',dst
|
||||||
if os.path.lexists(dst):
|
if os.path.lexists(dst):
|
||||||
os.remove(dst)
|
os.remove(dst)
|
||||||
|
|
Loading…
Reference in New Issue