コード例 #1
0
 def test_executables(self):
     from calibre.utils.ipc.launch import Worker
     from calibre.ebooks.pdf.pdftohtml import PDFTOHTML
     w = Worker({})
     self.assertTrue(os.path.exists(w.executable),
                     'calibre-parallel (%s) does not exist' % w.executable)
     self.assertTrue(
         os.path.exists(w.gui_executable),
         'calibre-parallel-gui (%s) does not exist' % w.gui_executable)
     self.assertTrue(os.path.exists(PDFTOHTML),
                     'pdftohtml (%s) does not exist' % PDFTOHTML)
     if iswindows:
         from calibre.devices.usbms.device import eject_exe
         self.assertTrue(
             os.path.exists(eject_exe()),
             'calibre-eject.exe (%s) does not exist' % eject_exe())
コード例 #2
0
ファイル: test_build.py プロジェクト: Britlantine/calibre
def test_executables():
    from calibre.utils.ipc.launch import Worker
    if getattr(sys, 'frozen', False):
        w = Worker({})
        if not os.path.exists(w.executable):
            raise SystemExit('calibre-parallel (%s) does not exist' % w.executable)
        if not os.path.exists(w.gui_executable):
            raise SystemExit('calibre-parallel-gui (%s) does not exist' % w.gui_executable)
        if iswindows:
            from calibre.devices.usbms.device import eject_exe
            if not os.path.exists(eject_exe()):
                raise SystemExit('calibre-eject.exe (%s) does not exist' % eject_exe())
        from calibre.ebooks.pdf.pdftohtml import PDFTOHTML
        if not os.path.exists(PDFTOHTML):
            raise SystemExit('pdftohtml (%s) does not exist' % PDFTOHTML)

        fprint('executables OK!')
コード例 #3
0
ファイル: test_build.py プロジェクト: NathanaelA/calibre
 def test_executables(self):
     from calibre.utils.ipc.launch import Worker
     from calibre.ebooks.pdf.pdftohtml import PDFTOHTML
     w = Worker({})
     self.assertTrue(os.path.exists(w.executable), 'calibre-parallel (%s) does not exist' % w.executable)
     self.assertTrue(os.path.exists(w.gui_executable), 'calibre-parallel-gui (%s) does not exist' % w.gui_executable)
     self.assertTrue(os.path.exists(PDFTOHTML), 'pdftohtml (%s) does not exist' % PDFTOHTML)
     if iswindows:
         from calibre.devices.usbms.device import eject_exe
         self.assertTrue(os.path.exists(eject_exe()), 'calibre-eject.exe (%s) does not exist' % eject_exe())
コード例 #4
0
def test_executables():
    from calibre.utils.ipc.launch import Worker
    if getattr(sys, 'frozen', False):
        w = Worker({})
        if not os.path.exists(w.executable):
            raise SystemExit('calibre-parallel (%s) does not exist' %
                             w.executable)
        if not os.path.exists(w.gui_executable):
            raise SystemExit('calibre-parallel-gui (%s) does not exist' %
                             w.gui_executable)
        if iswindows:
            from calibre.devices.usbms.device import eject_exe
            if not os.path.exists(eject_exe()):
                raise SystemExit('calibre-eject.exe (%s) does not exist' %
                                 eject_exe())
        from calibre.ebooks.pdf.pdftohtml import PDFTOHTML
        if not os.path.exists(PDFTOHTML):
            raise SystemExit('pdftohtml (%s) does not exist' % PDFTOHTML)

        fprint('executables OK!')