diff options
author | athulappadan | 2015-08-17 17:04:09 +0530 |
---|---|---|
committer | athulappadan | 2015-08-17 17:04:09 +0530 |
commit | 7f66d9e5dd9f67407ca83cab1815dc9b969a842d (patch) | |
tree | 11c7769345cd45d6564f716580cb8e118f483f84 /src | |
parent | ddb01dcab87a6179d20d7de76550a61c5f7db7d8 (diff) | |
download | nghdl-7f66d9e5dd9f67407ca83cab1815dc9b969a842d.tar.gz nghdl-7f66d9e5dd9f67407ca83cab1815dc9b969a842d.tar.bz2 nghdl-7f66d9e5dd9f67407ca83cab1815dc9b969a842d.zip |
LICENSE made appear in the terminal properly
Diffstat (limited to 'src')
-rwxr-xr-x | src/ngspice_ghdl.py | 7 |
1 files changed, 2 insertions, 5 deletions
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 |