From 506936250356ec10422933e04257c00facd77159 Mon Sep 17 00:00:00 2001 From: Fahim Date: Wed, 21 Oct 2015 13:07:57 +0530 Subject: Subject: Added pspice converter for windows Description: Added pspice converter for windows --- src/pspicetoKicad/ImportPspice.py | 5 +++-- src/pspicetoKicad/converter.exe | Bin 0 -> 587797 bytes src/pspicetoKicad/libConverter.exe | Bin 0 -> 533533 bytes 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 src/pspicetoKicad/converter.exe create mode 100644 src/pspicetoKicad/libConverter.exe diff --git a/src/pspicetoKicad/ImportPspice.py b/src/pspicetoKicad/ImportPspice.py index fc07083d..807726ee 100644 --- a/src/pspicetoKicad/ImportPspice.py +++ b/src/pspicetoKicad/ImportPspice.py @@ -12,7 +12,7 @@ class ImportPspiceLibrary(QtGui.QWidget): def __init__(self): super(ImportPspiceLibrary, self).__init__() self.obj_Appconfig = Appconfig() - + def imortLib(self): self.home = os.path.expanduser("~") self.worspace_loc = self.obj_Appconfig.default_workspace['workspace'] @@ -34,7 +34,7 @@ class ImportPspiceLibrary(QtGui.QWidget): else: self.cmd = "../pspicetoKicad/libConverter32 "+self.arg elif platform.system() == 'Windows': - print "Needs to include for Windows" + self.cmd = os.path.join(os.path.split(os.path.realpath(__file__))[0],'libConverter.exe') self.status = os.system(str(self.cmd)) @@ -144,6 +144,7 @@ class ConvertPspiceKicad(QtGui.QWidget): self.cmd = "../pspicetoKicad/schConverter32 "+self.arg1+" "+self.arg2 elif platform.system() == 'Windows': print "Needs to include for Windows" + self.cmd = os.path.join(os.path.split(os.path.realpath(__file__))[0],'converter.exe')+" "+self.arg1+" "+self.arg2 #Running command self.status = os.system(str(self.cmd)) diff --git a/src/pspicetoKicad/converter.exe b/src/pspicetoKicad/converter.exe new file mode 100644 index 00000000..e7718811 Binary files /dev/null and b/src/pspicetoKicad/converter.exe differ diff --git a/src/pspicetoKicad/libConverter.exe b/src/pspicetoKicad/libConverter.exe new file mode 100644 index 00000000..062cdc22 Binary files /dev/null and b/src/pspicetoKicad/libConverter.exe differ -- cgit