Comment 1 for bug 893866

Revision history for this message
Ali Ikinci (ali-ikinci) wrote :

26c26
< def __init__(self, path = "", fstype = "ext4", fssize = None, network = "none", xserver = "none", dbus = "none", dbusproxy = [], pulseaudio = False, devices = [], ctype = "cow", root = "/", bind = [], restrict = [], cow = []):
---
> def __init__(self, fstype = "ext4", fssize = None, network = "none", xserver = "none", dbus = "none", dbusproxy = [], pulseaudio = False, devices = [], ctype = "cow", root = "/", bind = [], restrict = [], cow = []):
104d103
< self.path = path
142,149c141,143
< if self.path == "":
< if not os.path.exists(os.path.expanduser("~/.arkose/")):
< os.mkdir(os.path.expanduser("~/.arkose/"))
< self.path = tempfile.mkdtemp(dir=os.path.expanduser("~/.arkose/"))
< else:
< if not os.path.exists(os.path.abspath(self.path)):
< os.mkdir(os.path.abspath(self.path))
< self.path = tempfile.mkdtemp(dir=os.path.abspath(self.path))
---
> if not os.path.exists(os.path.expanduser("~/.arkose/")):
> os.mkdir(os.path.expanduser("~/.arkose/"))
> self.path = tempfile.mkdtemp(dir=os.path.expanduser("~/.arkose/"))