summaryrefslogtreecommitdiff
path: root/src/kicadtoNgspice/KicadtoNgspice.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/kicadtoNgspice/KicadtoNgspice.py')
-rw-r--r--src/kicadtoNgspice/KicadtoNgspice.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/kicadtoNgspice/KicadtoNgspice.py b/src/kicadtoNgspice/KicadtoNgspice.py
index 4677c20d..cf70eab9 100644
--- a/src/kicadtoNgspice/KicadtoNgspice.py
+++ b/src/kicadtoNgspice/KicadtoNgspice.py
@@ -133,8 +133,7 @@ class MainWindow(QtGui.QWidget):
global analysisoutput
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 "PROJ PATH---",projpath