From 8836b0c4b3c15a65c1bfb3b99490c7f04e79b254 Mon Sep 17 00:00:00 2001 From: fahim Date: Mon, 15 Jun 2015 12:44:41 +0530 Subject: Subject: Bug fixing for xml generation Description: Bug fixing for xml generation --- src/kicadtoNgspice/Model.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/kicadtoNgspice/Model.py') diff --git a/src/kicadtoNgspice/Model.py b/src/kicadtoNgspice/Model.py index 8170f056..984c47f0 100644 --- a/src/kicadtoNgspice/Model.py +++ b/src/kicadtoNgspice/Model.py @@ -18,8 +18,7 @@ class Model(QtGui.QWidget): 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: -- cgit