example scripts: python work-arounds

* fixed three typos which were guaranteed to break said script.
This commit is contained in:
Ben McGinnes 2018-07-10 13:40:18 +10:00
parent 1eceacaff4
commit 0e760e396f

View File

@ -91,17 +91,17 @@ else:
userdir = os.path.expanduser("~") userdir = os.path.expanduser("~")
if new_homedir.startswith("~"): if new_homedir.startswith("~"):
new_homdir.replace("~", "") new_homedir.replace("~", "")
else: else:
pass pass
if new_homedir.startswith("/"): if new_homedir.startswith("/"):
new_homdir.replace("/", "") new_homedir.replace("/", "")
else: else:
pass pass
if new_homedir.startswith("."): if new_homedir.startswith("."):
new_homdir.replace(".", "_") new_homedir.replace(".", "_")
else: else:
pass pass