Mon, 25 Mar 2013 03:11:06 +0100
Script changes: Future import added, super calls modified and unicode behavior for str.
# -*- coding: utf-8 -*- # Copyright (c) 2010 - 2013 Detlev Offenbach <detlev@die-offenbachs.de> # """ Module implementing some common utility functions for the Mercurial package. """ from __future__ import unicode_literals # __IGNORE_WARNING__ import os import Utilities def getConfigPath(): """ Public method to get the filename of the config file. @return filename of the config file (string) """ if Utilities.isWindowsPlatform(): userprofile = os.environ["USERPROFILE"] return os.path.join(userprofile, "Mercurial.ini") else: homedir = Utilities.getHomeDir() return os.path.join(homedir, ".hgrc")