install

installer
Log | Files | Refs | README | LICENSE | git clone https://git.ne02ptzero.me/git/install

commit 4348a3e4a16ea8b059b666ce9648f92b68803214
parent 1ecd436cbb8da4c80320cac48b19b680eebc7a0a
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Mon, 19 Dec 2016 15:19:44 +0100

Fix(Files copy and Install class)

Diffstat:
Mscreens/install/install.py | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/screens/install/install.py b/screens/install/install.py @@ -26,6 +26,7 @@ import sys import time import datetime import threading +import shutil from urllib.request import urlretrieve from subprocess import Popen, PIPE, STDOUT, call import multiprocessing @@ -678,7 +679,7 @@ class Install: os.environ["PATH"] = "/bin:/usr/bin:/usr/sbin:/tools/bin" # Function that create the basic distribution skeleton - def skeleton(path = "/"): + def skeleton(self, path = "/"): self.dlg.infobox("Creating skeleton...") self.exec(["mkdir", "-pv", path + "{bin,boot,etc/{opt,sysconfig},home,lib/firmware,mnt,opt}" @@ -750,4 +751,4 @@ class Install: self.dlg.infobox("Creating defaultfiles...") for f in files: - os.copy(defaultfiles + f[0], path + f[1]) + shutil.copyfile(defaultfiles + f[0], path + f[1])