Skip to content

Commit

Permalink
remove obsoleted distutil
Browse files Browse the repository at this point in the history
  • Loading branch information
whoozle committed Mar 5, 2024
1 parent 2d97397 commit 0d879d2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions build
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ from compiler import manifest as mf
from compiler import compile_qml

import subprocess
import distutils
import shutil
import argparse
import shutil
import fnmatch
Expand All @@ -23,7 +23,6 @@ if PY2:
sys.setdefaultencoding('utf8')

from os import path
from distutils import dir_util
from compiler.ts import Ts

parser = argparse.ArgumentParser('qmlcore build tool')
Expand Down Expand Up @@ -221,7 +220,7 @@ def copytree(src, dst):
s = os.path.join(src, item)
d = os.path.join(dst, item)
if os.path.isdir(s):
distutils.dir_util.copy_tree(s, d)
shutil.copytree(s, d, dirs_exist_ok=True)
else:
shutil.copy2(s, d)

Expand Down

0 comments on commit 0d879d2

Please sign in to comment.