mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-05-05 11:00:47 +02:00
More fixes for python3.
This commit is contained in:
parent
cdce62f2aa
commit
45a25394f5
1 changed files with 2 additions and 3 deletions
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2018, Jim Miller
|
||||
# Copyright 2019, Jim Miller
|
||||
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
|
|
@ -18,11 +18,10 @@
|
|||
from __future__ import absolute_import
|
||||
import os, zipfile, sys
|
||||
from glob import glob
|
||||
|
||||
from six import text_type as unicode
|
||||
|
||||
def addFolderToZip(myZipFile,folder,exclude=[]):
|
||||
# print("folder:"+folder)
|
||||
folder = unicode(folder) #convert path to ascii for ZipFile Method
|
||||
excludelist=[]
|
||||
for ex in exclude:
|
||||
excludelist.extend(glob(folder+"/"+ex))
|
||||
|
|
|
|||
Loading…
Reference in a new issue