Skip to content
Permalink
Browse files

Use local cloudprint lib by default instead of package install, fixes…

… issue #36
  • Loading branch information
simoncadman committed Jul 18, 2013
1 parent 801077a commit 0fcd7cb598f2aa72fef53d771bfd0a5f15aae0ee
Showing with 6 additions and 6 deletions.
  1. +2 −2 backend.py
  2. +2 −2 dynamicppd.py
  3. +2 −2 reportissues.py
@@ -60,9 +60,9 @@ def getBackendDescription ( ) :
print(getBackendDescription())

try:
libpath = "/usr/lib/cloudprint-cups/"
libpath = "/usr/local/lib/cloudprint-cups/"
if not os.path.exists( libpath ):
libpath = "/usr/local/lib/cloudprint-cups"
libpath = "/usr/lib/cloudprint-cups"
sys.path.insert(0, libpath)
from auth import Auth
from printer import Printer
@@ -16,9 +16,9 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.

import sys, os, hashlib, locale
libpath = "/usr/lib/cloudprint-cups/"
libpath = "/usr/local/lib/cloudprint-cups/"
if not os.path.exists( libpath ):
libpath = "/usr/local/lib/cloudprint-cups"
libpath = "/usr/lib/cloudprint-cups"
sys.path.insert(0, libpath)

from auth import Auth
@@ -16,9 +16,9 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.

import sys, os, subprocess
libpath = "/usr/lib/cloudprint-cups/"
libpath = "/usr/local/lib/cloudprint-cups/"
if not os.path.exists( libpath ):
libpath = "/usr/local/lib/cloudprint-cups"
libpath = "/usr/lib/cloudprint-cups"
sys.path.insert(0, libpath)

from auth import Auth

0 comments on commit 0fcd7cb

Please sign in to comment.
You can’t perform that action at this time.