elif PLATFORM == "osx":
# lp -d <queue name> <name of document>
# lp <name of document> will send to default printer(?)
if QUEUE is not False:
print(vw_filename)
subprocess.call("lp -d " + QUEUE + " " + vw_filename)
else:
subprocess.call("lpr " + vw_filename)
and the error when I try to print still looks like this:
Traceback (most recent call last):
File "./sublime_plugin.py", line 339, in run_
File "./QuickPrint.py", line 134, in run
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py", line 470, in call
return Popen(*popenargs, **kwargs).wait()
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py", line 623, in __init__
errread, errwrite)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py", line 1141, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory