| 1234567891011121314151617181920212223 |
- #
- # Pour recréer les liens dans venv/bin
- #
- # A LANCER DEPUIS ICI ! (progs/)
- #
- import os,glob
- #
- pwd=os.getcwd()
- bin= pwd.replace("progs","venv/bin/")
- py=[x for x in glob.glob("*.py") if x !='dolinks.py']
- shells= glob.glob("*.sh")
- tex=glob.glob("*.tex")
- fichs= py+shells+tex
- #
- for f in fichs:
- try:
- os.symlink(f"{pwd}/{f}",f"{bin}{f.replace(".py","")}")
- print("ok: ",f)
- except:
- print("pb (existe?) avec ",f)
|