Skip to content

Commit

Permalink
always add /usr/sbin to path so that we can find lpinfo and probe for…
Browse files Browse the repository at this point in the history
… printer definitions

git-svn-id: https://xpra.org/svn/Xpra/trunk@12702 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed May 27, 2016
1 parent 0db6def commit 5b441f2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -900,6 +900,8 @@ def addtrailingslash(v):
pdf, postscript = "", ""
if os.name=="posix" and printing_ENABLED:
try:
if "/usr/sbin" not in sys.path:
sys.path.append("/usr/sbin")
from xpra.platform.pycups_printing import get_printer_definitions
print("probing cups printer definitions")
defs = get_printer_definitions()
Expand Down

0 comments on commit 5b441f2

Please sign in to comment.