def getuserbase():
 global USER_BASE
 if (USER_BASE is not None):
  return USER_BASE
 from sysconfig import get_config_var
 USER_BASE = get_config_var('userbase')
 return USER_BASE

def getuserbase ( ) : global USER_BASE if ( USER_BASE is not None ) : return USER_BASE from sysconfig import get_config_var USER_BASE = get_config_var ( 'userbase' ) return USER_BASE
returns the user base directory path .