Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-jams
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-jams
Commits
cf20be34
"README.md" did not exist on "af46a372f01659b451464c7348349d2067c3cb6f"
Commit
cf20be34
authored
4 years ago
by
Felix Sidokhine
Browse files
Options
Downloads
Patches
Plain Diff
cleaned-up the structure a bit
parent
8dc6100f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
developer-tools/append-license.py
+2
-1
2 additions, 1 deletion
developer-tools/append-license.py
developer-tools/samples/license.dat
+0
-0
0 additions, 0 deletions
developer-tools/samples/license.dat
with
2 additions
and
1 deletion
append-license.py
→
developer-tools/
append-license.py
+
2
−
1
View file @
cf20be34
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
"
)
...
...
This diff is collapsed.
Click to expand it.
samples/license.dat
→
developer-tools/
samples/license.dat
+
0
−
0
View file @
cf20be34
File moved
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment