// On Windows we should avoid writing temporary files to a directory that is
// part of the roaming part of the user profile. Instead we use the local part
// of the user profile, when available.
if sys.platform == "win32" and os.getenv("LOCALAPPDATA") is not None:
default_base_compiledir = os.path.join(os.getenv("LOCALAPPDATA"), "Theano")
else:
default_base_compiledir = os.path.join(get_home_dir(), ".theano")
After Change
compiledir_format_dict["short_platform"] = short_platform()
// Allow to have easily one compiledir per device.
compiledir_format_dict["device"] = config.device
compiledir_format_keys = ", ".join(sorted(compiledir_format_dict.keys()))
default_compiledir_format = ("compiledir_%(short_platform)s-%(processor)s-"
"%(python_version)s-%(python_bitwidth)s")
AddConfigVar("compiledir_format",