Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: ca9c669a4c
Fetching contributors…

Cannot retrieve contributors at this time

file 17 lines (16 sloc) 0.592 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
FILE_HEADER = """
Copyright (c) 2008-2009 Jonas Haag.
This file is part of gpyconf.
For conditions of distribution and use,
see the accompanying LICENSE file.
"""
FILE_HEADER = '# ' + '\n# '.join(FILE_HEADER.strip('\n').split('\n'))

if __name__ == '__main__':
    import os
    for _, _, files in os.walk('../src'):
        for file in files:
            with open(file) as fobj:
                content = fobj.read()
            with open(file, 'w') as fobj:
                fobj.write(content.replace('# %FILEHEADER%', FILE_HEADER))
            print "Updated license header in %s" % file
Something went wrong with that request. Please try again.