Added the wizard project location page

This commit is contained in:
Veronica K. B. Olsen
2020-07-11 15:48:31 +02:00
parent 1277e5025d
commit 8c895319e5
6 changed files with 114 additions and 25 deletions
+9
View File
@@ -227,3 +227,12 @@ def fuzzyTime(secDiff):
return "%d years ago" % int(round(secDiff/31557600))
return "beyond time and space"
def makeFileNameSafe(theText):
"""Returns a filename safe version of the text.
"""
cleanName = ""
for c in theText.strip():
if c.isalpha() or c.isdigit() or c == " ":
cleanName += c
return cleanName