Skip to content

Commit

Permalink
license
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeitgeberH committed Jul 21, 2022
1 parent 5c9b431 commit b780889
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,6 @@ ENV/
*~
src/*~
src/.gitignor~
.editorconfig
.editorconfig

.vscode
3 changes: 0 additions & 3 deletions .vscode/settings.json

This file was deleted.

2 changes: 1 addition & 1 deletion patchview/Data/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2020, Ming Hu
Copyright (c) 2020-2022, Ming Hu
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
5 changes: 3 additions & 2 deletions patchview/patchview.py
Original file line number Diff line number Diff line change
Expand Up @@ -3109,13 +3109,14 @@ def showdialog(self, msgText, details=""):
msg.exec_()

def License_clicked(self):
with open("./Data/LICENSE.txt") as f:
DATA_PATH = os.path.join(patchview_dir, "Data", "LICENSE.txt")
with open(DATA_PATH) as f:
BSD_3 = f.readlines()
BSD_3b = ""
for l in BSD_3:
BSD_3b = BSD_3b + l
self.showdialog(
"This program is under BSD-3 license.\nCopyright (c) 2020-2021, Ming Hu ([email protected]). All rights reserved.",
"This program is under BSD-3 license.\nCopyright (c) 2020-2022, Ming Hu. All rights reserved.",
BSD_3b,
)

Expand Down

0 comments on commit b780889

Please sign in to comment.