freebsd-ports/cad/astk-serveur/files/patch-asrun_common_sysutils.py
Thierry Thomas e22be4275b Upgrade - endly! - to Code_Aster 13.4.0-3.
Notes:

- I have (not yet) succeeded to enable MFront in this version;

- it uses math/mumps-edf, repocopied from math/mumps;

- cad/scotch is now taken out of the aster tarball;

- french/eficas is no more used: to be replaced by "aster-study" in Salome_Meca
	(the port cad/salome should be resurrected!)
2017-11-14 18:29:22 +00:00

20 lines
615 B
Python

--- asrun/common/sysutils.py.orig 2017-07-13 07:40:52 UTC
+++ asrun/common/sysutils.py
@@ -83,7 +83,7 @@ def on_mac():
def on_linux():
"""Tell if it's running on a linux platform"""
- return not on_windows()
+ return sys.platform in ("linux")
def on_64bits():
"""Tell if it's running on a 64 bits platform"""
@@ -212,7 +212,7 @@ class FileName(object):
and fill properties = user, passwd, mach, path
"""
# windows : only work on local files
- if not on_linux():
+ if on_windows():
self.path = pathname
return
# posix