From 061bc22691d0604077921d22f3eefea7bddee600 Mon Sep 17 00:00:00 2001 From: Johannes Findeisen Date: Sun, 20 Oct 2013 14:47:51 +0200 Subject: [PATCH] added license using less as a pager. maybe needs to be implemented using urwid for cross platform compatibility --- linspector/frontends/lish.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/linspector/frontends/lish.py b/linspector/frontends/lish.py index b178d31..5301474 100644 --- a/linspector/frontends/lish.py +++ b/linspector/frontends/lish.py @@ -274,4 +274,10 @@ class LishCommander(Exit, ShellCommander, LogCommander): self.print_color(PURPLE, "License: GNU Affero General Public License Version 3.0") def help_about(self): - print '''Show information about Linspector''' \ No newline at end of file + print '''Show information about Linspector''' + + def do_license(self, text): + os.system("less " + os.path.dirname(os.path.abspath(__file__)) + "/../../LICENSE") + + def help_license(self): + print '''Show license information''' \ No newline at end of file