Copyright update problem

Ive written a very shabby python script for this issue. Altough 7 years too late, the issue still persists.

How it works:
This script runs trough ALL files in the source folder, checks if the first two symbols in the first line of the file are “//” and then replaces the line with the copyright you set in the editor.

Your folder structure MUST look like this:

  • Config
    – DefaultGame.ini
  • Scripts (you need to manually add this folder and put the script in it)
    – UpdateCopyright.py
  • Source

Before you run the script, make sure to commit your changes or make a backup if unwanted changes appear.
To run the script you either need to install python or use py2exe and convert it.

Thats it - run the script whenever you make changes to the copyright notice in the editor (or DefaultGame.ini).

UpdateCopyright.py (1.5 KB)

PS: Wrote this script in 10 minutes, never used Python before, so please dont judge me. You are free to use, modify and everything else.

2 Likes