[modules] fix mkdir for 'opt/mhwd'

This commit is contained in:
Philip Müller 2019-09-02 16:42:19 -04:00
parent e797bb0dc5
commit bba3ce09cd
2 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ class MhwdController:
subprocess.call(["rm", "-Rf", join(self.root, dir)]) subprocess.call(["rm", "-Rf", join(self.root, dir)])
def mkdir(self, dir): def mkdir(self, dir):
subprocess.call(["mkdir", "-p", "/" + mp, join(self.root, dir)]) subprocess.call(["mkdir", "-p", join(self.root, dir)])
def configure(self, name, id): def configure(self, name, id):
cmd = ["mhwd", "-a", str(name), str(self.driver), str(id).zfill(4)] cmd = ["mhwd", "-a", str(name), str(self.driver), str(id).zfill(4)]

View File

@ -72,7 +72,7 @@ class ConfigController:
subprocess.call(["rm", "-Rf", join(self.root, dir)]) subprocess.call(["rm", "-Rf", join(self.root, dir)])
def mkdir(self, dir): def mkdir(self, dir):
subprocess.call(["mkdir", "-p", "/" + mp, join(self.root, dir)]) subprocess.call(["mkdir", "-p", join(self.root, dir)])
def run(self): def run(self):
self.init_keyring() self.init_keyring()