Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Radek Hušek
cups-pdf-postprocess
Commits
25402284
Commit
25402284
authored
Oct 10, 2017
by
Radek Hušek
Browse files
define & use DIR constant
parent
f38218f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
cups-pdf-postprocess.py
View file @
25402284
...
@@ -171,7 +171,7 @@ class CPP(QWidget):
...
@@ -171,7 +171,7 @@ class CPP(QWidget):
pipeline
.
append
([
"pdfbook"
,
"/dev/stdin"
,
"-o"
,
"/dev/stdout"
])
pipeline
.
append
([
"pdfbook"
,
"/dev/stdin"
,
"-o"
,
"/dev/stdout"
])
if
self
.
_compact
.
isChecked
():
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
()
])
"%i"
%
self
.
_compact_copies
.
value
()
])
if
self
.
_printer
.
currentData
()
is
SAVE_AS_FILE
:
if
self
.
_printer
.
currentData
()
is
SAVE_AS_FILE
:
...
@@ -190,6 +190,7 @@ class CPP(QWidget):
...
@@ -190,6 +190,7 @@ class CPP(QWidget):
exec_pipeline
(
pipeline
,
self
.
_pdf
,
err_callback
=
logMsg
)
exec_pipeline
(
pipeline
,
self
.
_pdf
,
err_callback
=
logMsg
)
self
.
_button_cancel
.
setText
(
"Close"
)
self
.
_button_cancel
.
setText
(
"Close"
)
DIR
=
os
.
path
.
dirname
(
os
.
path
.
realpath
(
sys
.
argv
[
0
]))
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
app
=
QApplication
(
sys
.
argv
[
2
:])
app
=
QApplication
(
sys
.
argv
[
2
:])
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment