mirror of
https://github.com/gryf/ebook-converter.git
synced 2026-03-03 23:35:48 +01:00
Convert calibre modules to ebook_converter.
Here is the first batch of modules, which are needed for converting several formats to LRF. Some of the logic has been change, more cleanups will follow.
This commit is contained in:
17
ebook_converter/main.py
Normal file
17
ebook_converter/main.py
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env python
|
||||
import sys
|
||||
|
||||
# TODO: remove this crap
|
||||
sys.resources_location = ''
|
||||
sys.extensions_location = '/usr/lib64/calibre/calibre/plugins'
|
||||
sys.executables_location = '/usr/bin'
|
||||
|
||||
from ebook_converter.ebooks.conversion.cli import main
|
||||
|
||||
|
||||
def run():
|
||||
sys.exit(main())
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
run()
|
||||
Reference in New Issue
Block a user