example scripts: python work-arounds
authorBen McGinnes <ben@adversary.org>
Tue, 10 Jul 2018 03:40:18 +0000 (13:40 +1000)
committerBen McGinnes <ben@adversary.org>
Tue, 10 Jul 2018 03:40:18 +0000 (13:40 +1000)
* fixed three typos which were guaranteed to break said script.

lang/python/examples/howto/temp-homedir-config.py

index 3bb5cf3..1111fe2 100755 (executable)
@@ -91,17 +91,17 @@ else:
 userdir = os.path.expanduser("~")
 
 if new_homedir.startswith("~"):
-    new_homdir.replace("~", "")
+    new_homedir.replace("~", "")
 else:
     pass
 
 if new_homedir.startswith("/"):
-    new_homdir.replace("/", "")
+    new_homedir.replace("/", "")
 else:
     pass
 
 if new_homedir.startswith("."):
-    new_homdir.replace(".", "_")
+    new_homedir.replace(".", "_")
 else:
     pass