Skip to content

Commit

Permalink
remove distutils and use shutil (copytree)
Browse files Browse the repository at this point in the history
  • Loading branch information
luclaurent committed Oct 3, 2024
1 parent 61ac45d commit bdecdd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions amc2moodle/amc2moodle/amc2moodle_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import shutil
from importlib import util # python 3.x
import tempfile
from distutils.dir_util import copy_tree
from shutil import copytree
import logging
from concurrent.futures import ThreadPoolExecutor

Expand Down Expand Up @@ -341,7 +341,7 @@ def runBuilding(self):
dir=getPathFile(self.output))
#
Logger.info(' > Save all temp files in: %s' % tempdirSave)
copy_tree(self.tempdir.name, tempdirSave)
copytree(self.tempdir.name, tempdirSave)

# clean XML file (experimental)
if self.cleanXML:
Expand Down

0 comments on commit bdecdd4

Please sign in to comment.