diff --git a/scripts/supybot-wizard.py b/scripts/supybot-wizard.py index c71d4fd5b..dc32d55b7 100755 --- a/scripts/supybot-wizard.py +++ b/scripts/supybot-wizard.py @@ -107,6 +107,9 @@ def getDirectoryName(default): '[defaults to %s]' % os.path.join(os.curdir, default)) if not dir: dir = default + if '~' in dir: + if 'HOME' in os.environ: + dir = dir.replace('~', os.getenv('HOME')) dir = os.path.abspath(dir) try: os.makedirs(dir)