We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I've hacked bomsaway to take a filename on the command line so I can run it direct from KiCAD with the command:
python "/full/path/to/Boms-Away/bomsaway.py" "%P/%B.sch" &
Or just supply the filename on the command line in the normal way, or not.
Hoping this is useful.
Here's the diff:
diff --git bomsaway.py bomsaway.py index ec09d86..2966997 100755 --- bomsaway.py +++ bomsaway.py @@ -2,6 +2,7 @@ import os import csv import shutil +import sys import wx from boms_away import sch, datastore @@ -581,9 +582,15 @@ class MainFrame(wx.Frame): class BomsAwayApp(wx.App): def OnInit(self): + ifile = None + try: + ifile = sys.argv[1] + except: + pass frame = MainFrame(None, -1, 'Boms-Away!') frame.Show(True) self.SetTopWindow(frame) + if ifile: frame.load(ifile) return True if __name__ == '__main__':
The text was updated successfully, but these errors were encountered:
Good idea, I'll fold this in ASAP
Sorry, something went wrong.
No branches or pull requests
I've hacked bomsaway to take a filename on the command line so I can run it direct from KiCAD with the command:
python "/full/path/to/Boms-Away/bomsaway.py" "%P/%B.sch" &
Or just supply the filename on the command line in the normal way, or not.
Hoping this is useful.
Here's the diff:
The text was updated successfully, but these errors were encountered: