diff options
Diffstat (limited to 'src/kicadtoNgspice/Source.py')
-rw-r--r-- | src/kicadtoNgspice/Source.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/kicadtoNgspice/Source.py b/src/kicadtoNgspice/Source.py index ef4db1cc..e0d0fe19 100644 --- a/src/kicadtoNgspice/Source.py +++ b/src/kicadtoNgspice/Source.py @@ -34,8 +34,7 @@ class Source(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: |