mirror of
https://github.com/JonathanHerrewijnen/calibre-web.git
synced 2024-11-13 06:34:26 +00:00
Update handling for package data
This commit is contained in:
parent
fbb905957b
commit
8aebf48193
@ -232,6 +232,11 @@ class Updater(threading.Thread):
|
|||||||
additional_path = self.is_venv()
|
additional_path = self.is_venv()
|
||||||
if additional_path:
|
if additional_path:
|
||||||
exclude = exclude + (additional_path,)
|
exclude = exclude + (additional_path,)
|
||||||
|
|
||||||
|
# check if we are in a package, rename cps.py to __init__.py
|
||||||
|
if constants.HOME_CONFIG:
|
||||||
|
shutil.move(os.path.join(source, 'cps.py'), os.path.join(source, '__init__.py'))
|
||||||
|
|
||||||
for root, dirs, files in os.walk(destination, topdown=True):
|
for root, dirs, files in os.walk(destination, topdown=True):
|
||||||
for name in files:
|
for name in files:
|
||||||
old_list.append(os.path.join(root, name).replace(destination, ''))
|
old_list.append(os.path.join(root, name).replace(destination, ''))
|
||||||
|
Loading…
Reference in New Issue
Block a user