Oz N Tiram пре 8 година
родитељ
комит
f76b5dd13d
2 измењених фајлова са 2 додато и 2 уклоњено
  1. 1 1
      pwman/__init__.py
  2. 1 1
      tests/test_tools.py

+ 1 - 1
pwman/__init__.py

@@ -97,7 +97,7 @@ def get_conf(args):
 
 def set_xsel(configp, OSX):
     if not OSX:
-        xselpath = shutil.which("xsel")
+        xselpath = shutil.which("xsel") or ""
         configp.set_value("Global", "xsel", xselpath)
     elif OSX:
         pbcopypath = shutil.which("pbcopy")

+ 1 - 1
tests/test_tools.py

@@ -106,7 +106,7 @@ class SetupTester(object):
                                )
 
         if not OSX:
-            self.xselpath = shutil.which("xsel")
+            self.xselpath = shutil.which("xsel") or ""
             self.configp.set_value("Global", "xsel", self.xselpath)
         else:
             self.xselpath = "xsel"