def get_install_dir(self, environment):
    default_install_dir = self.get_default_install_dir(environment)
    outdirs = self.get_custom_install_dir()
    if ((outdirs[0] is not None) and (outdirs[0] != default_install_dir) and (outdirs[0] is not True)):
        custom_install_dir = True
    else:
        custom_install_dir = False
        outdirs[0] = default_install_dir
    return (outdirs, custom_install_dir)
def get_install_dir(self, environment):
    default_install_dir = self.get_default_install_dir(environment)
    outdirs = self.get_custom_install_dir()
    if ((outdirs[0] is not None) and (outdirs[0] != default_install_dir) and (outdirs[0] is not True)):
        custom_install_dir = True
    else:
        custom_install_dir = False
        outdirs[0] = default_install_dir
    return (outdirs, custom_install_dir)