From 7f66d9e5dd9f67407ca83cab1815dc9b969a842d Mon Sep 17 00:00:00 2001 From: athulappadan Date: Mon, 17 Aug 2015 17:04:09 +0530 Subject: LICENSE made appear in the terminal properly --- install.sh | 3 +++ src/ngspice_ghdl.py | 7 ++----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/install.sh b/install.sh index 04e7efb..982894c 100755 --- a/install.sh +++ b/install.sh @@ -81,6 +81,9 @@ fi cd $cur_dir cp -rv src/* ~/$src_loc/ +#Copying LICENSE file +cp LICENSE ~/$src_loc/ + #Creating config.ini file and adding configuration information cd ~/$src_loc/ diff --git a/src/ngspice_ghdl.py b/src/ngspice_ghdl.py index 6791cc1..905d7fc 100755 --- a/src/ngspice_ghdl.py +++ b/src/ngspice_ghdl.py @@ -19,13 +19,10 @@ class Mainwindow(QtGui.QWidget): #super(Mainwindow, self).__init__() QtGui.QMainWindow.__init__(self) print "Initializing.........." - cwd = os.getcwd() - path, file = os.path.split(cwd) - print "cwd n path------ >", cwd, path - licensefile = os.path.join(path, "LICENSE") + self.home = os.path.expanduser("~") + licensefile = os.path.join(self.home+'/.FreeEDA/', "LICENSE") fileopen = open(licensefile, 'r') print fileopen.read() - self.home = os.path.expanduser("~") self.parser = SafeConfigParser() self.parser.read(self.home+'/.FreeEDA/config.ini') self.file_list = [] #to keep the supporting files -- cgit