Replace distutils with shutil
This commit is contained in:
parent
110cd7f3da
commit
48e761de76
1 changed files with 2 additions and 2 deletions
|
@ -11,9 +11,9 @@ import shutil
|
||||||
import tempfile
|
import tempfile
|
||||||
import urllib.request
|
import urllib.request
|
||||||
import zipfile
|
import zipfile
|
||||||
from distutils.dir_util import copy_tree
|
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
from os import path
|
from os import path
|
||||||
|
from shutil import copytree
|
||||||
|
|
||||||
# --- Globals ----------------------------------------------
|
# --- Globals ----------------------------------------------
|
||||||
PLUGINS = """
|
PLUGINS = """
|
||||||
|
@ -107,7 +107,7 @@ if __name__ == "__main__":
|
||||||
temp_directory = tempfile.mkdtemp()
|
temp_directory = tempfile.mkdtemp()
|
||||||
|
|
||||||
if not path.isdir(SOURCE_DIR):
|
if not path.isdir(SOURCE_DIR):
|
||||||
copy_tree(FALLBACK_SOURCE_DIR, SOURCE_DIR)
|
copytree(FALLBACK_SOURCE_DIR, SOURCE_DIR)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if futures:
|
if futures:
|
||||||
|
|
Loading…
Reference in a new issue