Path: blob/main/cad/astk-serveur/files/patch-asrun_system.py
18157 views
--- asrun/system.py.orig 2017-07-13 07:40:52 UTC1+++ asrun/system.py2@@ -133,10 +133,10 @@ def get_system_tmpdir():3or os.environ.get('TEMP') or os.environ.get('TMP')4if var:5return var6- if on_linux():7- return "/tmp"8- else:9+ if on_windows():10return osp.join(os.environ.get("%systemroot%", "c:\\windows"), "temp")11+ else:12+ return "/tmp"131415def split_path(path):16@@ -854,6 +854,8 @@ class AsterSystem:17num = max([int(i) for i in l_ids]) + 118elif on_windows():19num = 120+ else:21+ num = %%MAKE_JOBS_NUMBER%%22self._cpuinfo_cache[what+mach+user] = num23self._dbg("GetCpuInfo '%s' returns : %s" % (what, num))24return num252627