Skip to content
Snippets Groups Projects
Commit cf20be34 authored by Felix Sidokhine's avatar Felix Sidokhine
Browse files

cleaned-up the structure a bit

parent 8dc6100f
No related branches found
No related tags found
No related merge requests found
import os
dir_name = "/Users/felixsidokhine/Git/jams-refactoring" # Edit as needed
dir_name = "../" # Edit as needed
for parent, dirnames, filenames in os.walk(dir_name):
......@@ -10,6 +10,7 @@ for parent, dirnames, filenames in os.walk(dir_name):
with open(os.path.join(parent, fn), 'r') as f:
lines = f.readlines() #read
if "/*" in lines[0]:
print("File already contains license header!")
continue
else:
lines.insert(0,"*/\n")
......
File moved
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