374 | | backendsdirectory = self.backendsdirectory |
375 | | pykotadirectory = self.pykotadirectory |
376 | | self.confirmCommand("to make PyKota known to CUPS", "ln -s %(pykotadirectory)s/cupspykota %(backendsdirectory)s/cupspykota" % locals()) |
377 | | self.confirmCommand("to restart CUPS for the changes to take effect", self.cupsrestart) |
| 374 | backend = os.path.join(self.backendsdirectory, "cupspykota") |
| 375 | if not os.path.exists(backend) : |
| 376 | realbackend = os.path.join(self.pykotadirectory, "cupspykota") |
| 377 | self.confirmCommand("to make PyKota known to CUPS", "ln -s %(realbackend)s %(backend)s" % locals()) |
| 378 | self.confirmCommand("to restart CUPS for the changes to take effect", self.cupsrestart) |