install

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

commit 381b83b9cb8914fff02049cb8cb295e5647949b4
parent 32cdf04487882ca9fd57199a691777a0338b5b8e
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Mon, 19 Dec 2016 17:10:25 +0100

Fix(Install)

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

diff --git a/screens/install/install.py b/screens/install/install.py @@ -30,6 +30,7 @@ import shutil from urllib.request import urlretrieve from subprocess import Popen, PIPE, STDOUT, call import multiprocessing +from pythondialog.dialog import * class Install: @@ -72,7 +73,7 @@ class Install: # main function, called by Main instance def main(self, Main): # Save the installer PWD - self.org_pwd = os.environ["PWD"] + self.org_pwd = os.getcwd() # The current configuration is already loaded from a file, no # reason to re-save it. @@ -748,7 +749,7 @@ class Install: # This function copy specificied files in defaultfiles/ and install them # on the system def copy_files(self, path = "/"): - directory = "defaultfiles" + directory = "defaultfiles/" files = { ("passwd", "etc/passwd"), ("group", "etc/group"), @@ -758,4 +759,4 @@ class Install: self.dlg.infobox("Creating defaultfiles...") for f in files: - shutil.copyfile(defaultfiles + f[0], path + f[1]) + shutil.copyfile(directory + f[0], path + f[1])