<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def getConfigFile():
 """Returns the config file location. If $WAKATIME_HOME env varialbe is defined, returns $WAKATIME_HOME/.wakatime.cfg, otherwise ~/.wakatime.cfg. """


    fileName = '.wakatime.cfg'

    home = os.environ.get('WAKATIME_HOME')
    if home:
        return os.path.join(os.path.expanduser(home), fileName)

    return os.path.join(os.path.expanduser('~'), fileName)