summaryrefslogtreecommitdiff
path: root/src/kicadtoNgspice/Model.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/kicadtoNgspice/Model.py')
-rw-r--r--src/kicadtoNgspice/Model.py3
1 files changed, 1 insertions, 2 deletions
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: