mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-18 03:58:32 +02:00
Fix copytree for Python 3.7 (which doesn't support dirs_exist_ok)
This commit is contained in:
parent
66ecdcf48e
commit
ea18a86cab
1 changed files with 4 additions and 1 deletions
|
@ -93,7 +93,10 @@ def we_use_the_config(config_file, temp_dir, working_dir):
|
|||
# Copy all of the journals over
|
||||
journal_source = os.path.join(working_dir, "data", "journals")
|
||||
journal_dest = os.path.join(temp_dir.name, "features", "journals")
|
||||
shutil.copytree(journal_source, journal_dest, dirs_exist_ok=True)
|
||||
try:
|
||||
shutil.copytree(journal_source, journal_dest)
|
||||
except FileExistsError:
|
||||
pass # Happens when specifying config files multiple times
|
||||
|
||||
# @todo get rid of this by using default config values
|
||||
# merge in version number
|
||||
|
|
Loading…
Add table
Reference in a new issue