diff options
Diffstat (limited to 'src/kicadtoNgspice/Analysis.py')
-rw-r--r-- | src/kicadtoNgspice/Analysis.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/kicadtoNgspice/Analysis.py b/src/kicadtoNgspice/Analysis.py index 7ac430c4..7c237dde 100644 --- a/src/kicadtoNgspice/Analysis.py +++ b/src/kicadtoNgspice/Analysis.py @@ -88,8 +88,7 @@ class Analysis(QtGui.QWidget): def createACgroup(self): kicadFile = sys.argv[1] (projpath,filename)=os.path.split(kicadFile) - project_name=projpath.split("/") - project_name=project_name[len(project_name)-1] + project_name=os.path.basename(projpath) print "PROJECT NAME---------",project_name check=1 try: @@ -229,8 +228,7 @@ class Analysis(QtGui.QWidget): def createDCgroup(self): kicadFile = sys.argv[1] (projpath,filename)=os.path.split(kicadFile) - project_name=projpath.split("/") - project_name=project_name[len(project_name)-1] + project_name=os.path.basename(projpath) print "PROJECT NAME---------",project_name check=1 try: @@ -374,8 +372,7 @@ class Analysis(QtGui.QWidget): def createTRANgroup(self): kicadFile = sys.argv[1] (projpath,filename)=os.path.split(kicadFile) - project_name=projpath.split("/") - project_name=project_name[len(project_name)-1] + project_name=os.path.basename(projpath) print "PROJECT NAME---------",project_name check=1 try: |