Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/cad/astk-serveur/files/patch-asrun_common_sysutils.py
16461 views
1
--- asrun/common/sysutils.py.orig 2017-07-13 07:40:52 UTC
2
+++ asrun/common/sysutils.py
3
@@ -83,7 +83,7 @@ def on_mac():
4
5
def on_linux():
6
"""Tell if it's running on a linux platform"""
7
- return not on_windows()
8
+ return sys.platform in ("linux")
9
10
def on_64bits():
11
"""Tell if it's running on a 64 bits platform"""
12
@@ -212,7 +212,7 @@ class FileName(object):
13
and fill properties = user, passwd, mach, path
14
"""
15
# windows : only work on local files
16
- if not on_linux():
17
+ if on_windows():
18
self.path = pathname
19
return
20
# posix
21
22