Hi,
the attached patch adds the missing pcb libs.
Please review before applying.
Regards
Werner
diff --git a/lib/xgsch2pcb/gsch2pcbproject.py b/lib/xgsch2pcb/gsch2pcbproject.py
index 61996d5..4ea964b 100644
--- a/lib/xgsch2pcb/gsch2pcbproject.py
+++ b/lib/xgsch2pcb/gsch2pcbproject.py
@@ -18,6 +18,7 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
import os, gobject
+from funcs import *
class Gsch2PCBProject(gobject.GObject):
@@ -92,6 +93,10 @@ class Gsch2PCBProject(gobject.GObject):
fp = open(destfile, 'wb')
fp.write('schematics %s\n' % ' '.join(self.pages))
fp.write('output-name %s\n' % self.output_name)
+ pcbdir = os.path.dirname(find_tool_path("pcb"))
+ pcbdatadir = os.path.abspath(os.path.join(pcbdir, "../share/pcb/"))
+ fp.write('elements-dir %s\n' % os.path.join(pcbdatadir, "pcblib-newlib"))
+ fp.write('elements-dir %s\n' % os.path.join(pcbdatadir, "newlib"))
fp.close()
if destfile == self.filename:
self.set_dirty(False)
_______________________________________________
geda-dev mailing list
[email protected]
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev