[postcfg] get rid of distutils
This commit is contained in:
parent
008caa43e2
commit
02736d7ccf
@ -23,8 +23,7 @@ import libcalamares
|
|||||||
import subprocess
|
import subprocess
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from shutil import copy2
|
from shutil import copy2, copytree
|
||||||
from distutils.dir_util import copy_tree
|
|
||||||
from os.path import join, exists
|
from os.path import join, exists
|
||||||
from libcalamares.utils import target_env_call
|
from libcalamares.utils import target_env_call
|
||||||
|
|
||||||
@ -68,7 +67,7 @@ class ConfigController:
|
|||||||
|
|
||||||
def copy_folder(self, source, target):
|
def copy_folder(self, source, target):
|
||||||
if exists("/" + source):
|
if exists("/" + source):
|
||||||
copy_tree("/" + source, join(self.root, target), preserve_symlinks=1)
|
copytree("/" + source, join(self.root, target), preserve_symlinks=1)
|
||||||
|
|
||||||
def remove_pkg(self, pkg, path):
|
def remove_pkg(self, pkg, path):
|
||||||
if exists(join(self.root, path)):
|
if exists(join(self.root, path)):
|
||||||
|
Loading…
Reference in New Issue
Block a user