no direct support for shell scripts anymore
This commit is contained in:
parent
db1882e4de
commit
257180b558
|
@ -87,7 +87,6 @@ checkout:
|
||||||
- git checkout $CI_COMMIT_SHA
|
- git checkout $CI_COMMIT_SHA
|
||||||
- git submodule update --init
|
- git submodule update --init
|
||||||
- source env/DAMASK.sh
|
- source env/DAMASK.sh
|
||||||
- ./installation/symlink_Processing.py
|
|
||||||
except:
|
except:
|
||||||
- master
|
- master
|
||||||
- release
|
- release
|
||||||
|
|
2
PRIVATE
2
PRIVATE
|
@ -1 +1 @@
|
||||||
Subproject commit 73f69c191ab7910d938b98daae0925f636b9cb57
|
Subproject commit 6bca1f57bcdffacb8076466ecad73cdc44e965f9
|
|
@ -1,28 +0,0 @@
|
||||||
#!/usr/bin/env python3
|
|
||||||
|
|
||||||
# Makes postprocessing routines accessible from everywhere.
|
|
||||||
import sys
|
|
||||||
from pathlib import Path
|
|
||||||
import os
|
|
||||||
|
|
||||||
bin_dir = Path(os.environ['DAMASK_ROOT'])/'bin'
|
|
||||||
|
|
||||||
if not bin_dir.exists():
|
|
||||||
bin_dir.mkdir()
|
|
||||||
|
|
||||||
|
|
||||||
sys.stdout.write('\nsymbolic linking...\n')
|
|
||||||
for sub_dir in ['pre','post']:
|
|
||||||
the_dir = Path(os.environ['DAMASK_ROOT'])/'processing'/sub_dir
|
|
||||||
|
|
||||||
for the_file in the_dir.glob('*.py'):
|
|
||||||
src = the_dir/the_file
|
|
||||||
dst = bin_dir/Path(the_file.with_suffix('').name)
|
|
||||||
if dst.is_file(): dst.unlink() # dst.unlink(True) for Python >3.8
|
|
||||||
dst.symlink_to(src)
|
|
||||||
|
|
||||||
|
|
||||||
sys.stdout.write('\npruning broken links...\n')
|
|
||||||
for filename in bin_dir.glob('*'):
|
|
||||||
if not filename.is_file():
|
|
||||||
filename.unlink()
|
|
Loading…
Reference in New Issue