From b7808892129581ad9e1a7c8f794a465ce51610dd Mon Sep 17 00:00:00 2001 From: ZeitgeberH Date: Thu, 21 Jul 2022 18:07:56 -0500 Subject: [PATCH] license --- .gitignore | 4 +++- .vscode/settings.json | 3 --- patchview/Data/LICENSE.txt | 2 +- patchview/patchview.py | 5 +++-- 4 files changed, 7 insertions(+), 7 deletions(-) delete mode 100644 .vscode/settings.json diff --git a/.gitignore b/.gitignore index 5026536..2d2d98a 100644 --- a/.gitignore +++ b/.gitignore @@ -106,4 +106,6 @@ ENV/ *~ src/*~ src/.gitignor~ -.editorconfig \ No newline at end of file +.editorconfig + +.vscode diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 699e70d..0000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "esbonio.sphinx.confDir": "" -} \ No newline at end of file diff --git a/patchview/Data/LICENSE.txt b/patchview/Data/LICENSE.txt index 85687f9..d65e4c0 100644 --- a/patchview/Data/LICENSE.txt +++ b/patchview/Data/LICENSE.txt @@ -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 diff --git a/patchview/patchview.py b/patchview/patchview.py index 1771cbe..f0cb957 100644 --- a/patchview/patchview.py +++ b/patchview/patchview.py @@ -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 (ming.hu@bcm.edu). All rights reserved.", + "This program is under BSD-3 license.\nCopyright (c) 2020-2022, Ming Hu. All rights reserved.", BSD_3b, )