Working for pip and "normal" start for python3 and python2

This commit is contained in:
Ozzieisaacs
2019-06-02 09:33:45 +02:00
parent f5b335e8e9
commit bb0d5c5538
27 changed files with 114 additions and 91 deletions
+4 -10
View File
@@ -17,14 +17,13 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# import os
from tempfile import gettempdir
import hashlib
from collections import namedtuple
import os
from flask_babel import gettext as _
from cps import comic
from cps import app
import comic
from . import app
try:
from lxml.etree import LXML_VERSION as lxmlversion
@@ -72,14 +71,9 @@ except ImportError:
use_PIL = False
__author__ = 'lemmsh'
BookMeta = namedtuple('BookMeta', 'file_path, extension, title, author, cover, description, tags, series, series_id, languages')
"""
:rtype: BookMeta
"""
def process(tmp_file_path, original_file_name, original_file_extension):
meta = None