Skip to content
Snippets Groups Projects
Commit a8f52031 authored by Janik Zikovsky's avatar Janik Zikovsky
Browse files

Refs #3984

parent a7e56a58
No related branches found
No related tags found
No related merge requests found
...@@ -36,12 +36,13 @@ def remove_wiki_from_header(): ...@@ -36,12 +36,13 @@ def remove_wiki_from_header():
n = 0 n = 0
# The output file # The output file
outlines = [] outlines = []
while not lines[n].startswith("/*WIKI*") and not lines[n].startswith('"""*WIKI*') and n < len(lines): while n < len(lines) and (not lines[n].startswith("/*WIKI*") and not lines[n].startswith('"""*WIKI*')):
outlines.append( lines[n] ) outlines.append( lines[n] )
n += 1 n += 1
#Skip all the WIKI lines #Skip all the WIKI lines
while not lines[n].startswith("*WIKI*") and n < len(lines): while (n < len(lines)) and not lines[n].startswith("*WIKI*"):
n += 1 n += 1
n += 1
# Copy the rest # Copy the rest
while n < len(lines): while n < len(lines):
outlines.append( lines[n] ) outlines.append( lines[n] )
...@@ -243,6 +244,9 @@ def find_orphan_wiki(): ...@@ -243,6 +244,9 @@ def find_orphan_wiki():
#====================================================================== #======================================================================
if __name__ == "__main__": if __name__ == "__main__":
remove_wiki_from_header()
sys.exit()
# First, get the config for the last settings # First, get the config for the last settings
config = ConfigParser.ConfigParser() config = ConfigParser.ConfigParser()
config_filename = os.path.split(__file__)[0] + "/wiki_tools.ini" config_filename = os.path.split(__file__)[0] + "/wiki_tools.ini"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment