def get_conan_user_home(): tmp = conan_expand_user(os.getenv("CONAN_USER_HOME", "~")) if not os.path.isabs(tmp): raise Exception("Invalid CONAN_USER_HOME value '%s', " "please specify an absolute or path starting with ~/ " "(relative to user home)" % tmp) return os.path.abspath(tmp)
def get_conan_user_home(): user_home = os.getenv("CONAN_USER_HOME", "~") tmp = conan_expand_user(user_home) if not os.path.isabs(tmp): raise Exception("Invalid CONAN_USER_HOME value '%s', " "please specify an absolute or path starting with ~/ " "(relative to user home)" % tmp) return os.path.abspath(tmp)