mirror of
https://github.com/noDRM/DeDRM_tools.git
synced 2024-11-05 13:36:10 +06:00
dbf4b54026
Now the plugin ZIP file (DeDRM_plugin.zip) can be run with a normal Python interpreter as if it were a Python file (try `python3 DeDRM_plugin.zip --help`). This way I can begin building a standalone version (that can run without Calibre) without having to duplicate a ton of code.
23 lines
479 B
Python
23 lines
479 B
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# __main__.py for DeDRM_plugin
|
|
# (CLI interface without Calibre)
|
|
# Copyright © 2021 NoDRM
|
|
|
|
__license__ = 'GPL v3'
|
|
__docformat__ = 'restructuredtext en'
|
|
|
|
# For revision history see __init__.py
|
|
|
|
"""
|
|
Run DeDRM plugin without Calibre.
|
|
"""
|
|
|
|
# Import __init__.py from the standalone folder so we can have all the
|
|
# standalone / non-Calibre code in that subfolder.
|
|
|
|
import standalone.__init__ as mdata
|
|
import sys
|
|
|
|
mdata.main(sys.argv) |