Find home dirctory regardless of platform
This allows for correctly deleting the wizard-has-run file on any platform
commitb214ba0bf9e0e30fba9c65af1fac525b8e6770fe
authorJosh Arenson <joshua.arenson@canonical.com>
dateTue 2 Jun 2015, 16:11 (11 years ago)
parent9ec1284
tests/autopilot/unity8/settings_wizard/fixture_setup.py+4−1
@@ -22,9 +22,12 @@
2222import fixtures
2323import os
2424
25+from os.path import expanduser
26+
2527
2628class SettingsWizard(fixtures.Fixture):
27− WIZARD_FILE = '/home/phablet/.config/ubuntu-system-settings/wizard-has-run'
29+ WIZARD_FILE = expanduser("~") + \
30+ '/.config/ubuntu-system-settings/wizard-has-run'
2831
2932 def __init__(self, enable):
3033 super().__init__()