Commit 25402284 authored by Radek Hušek's avatar Radek Hušek
Browse files

define & use DIR constant

parent f38218f1
......@@ -171,7 +171,7 @@ class CPP(QWidget):
pipeline.append([ "pdfbook", "/dev/stdin", "-o", "/dev/stdout" ])
if self._compact.isChecked():
pipeline.append([ "%s/%s" % (os.path.dirname(os.path.realpath(sys.argv[0])), "print_compact.sh"),
pipeline.append([ "%s/print_compact.sh" % DIR,
"%i" % self._compact_copies.value() ])
if self._printer.currentData() is SAVE_AS_FILE:
......@@ -190,6 +190,7 @@ class CPP(QWidget):
exec_pipeline(pipeline, self._pdf, err_callback=logMsg)
self._button_cancel.setText("Close")
DIR = os.path.dirname(os.path.realpath(sys.argv[0]))
if __name__ == '__main__':
app = QApplication(sys.argv[2:])
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment