Commit 9a4f9e54 authored by Remi Perenon's avatar Remi Perenon

Removing unused files

parent 1d3d4bc6
Pipeline #4755 passed with stages
in 29 minutes and 37 seconds
# Update version number to python source code (will appear in "About..." dialog)
# see
sed -i "s/.*__version__.*/__version__ = \"${VERSION}\"/" Src/
# Update the date of the version
sed -i "s/.*__date__.*/__date__ = \"`date +"%d-%m-%Y"`\"/" Src/
import os
if __name__ == "__main__":
target_dirs = ["Extensions","Src","Tests"]
header = """# **************************************************************************
# MDANSE: Molecular Dynamics Analysis for Neutron Scattering Experiments
# @file %s
# @brief Implements module/class/test %s
# @homepage
# @license GNU General Public License v3 or higher (see LICENSE)
# @copyright Institut Laue Langevin 2013-now
# @authors Scientific Computing Group at ILL (see AUTHORS)
# **************************************************************************
mdanse_root = os.path.dirname(os.path.abspath(__file__))
for target_dir in target_dirs:
for subdir,_,filenames in os.walk(os.path.join(mdanse_root,target_dir)):
for filename in filenames:
basename,file_ext = os.path.splitext(filename)
if file_ext not in [".py",".pyx"]:
full_path = os.path.join(subdir,filename)
with open(full_path,"r") as fin:
contents = header % (os.path.relpath(full_path,mdanse_root),basename) +
with open(full_path,"w") as fout:
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