Pour macOS

This commit is contained in:
lpoulin 2025-01-27 17:10:32 +01:00
parent 196f63a7f1
commit 6a3b54c127
6 changed files with 4 additions and 4 deletions

BIN
.DS_Store vendored Normal file

Binary file not shown.

BIN
pluginsCenSavoie_v3/.DS_Store vendored Normal file

Binary file not shown.

View File

@ -69,7 +69,7 @@ class BackinMFU:
global mdp_1st_cnx
mdp_1st_cnx = bd_cen_mdp_1st_cnx
global os_user
if sys.platform == 'linux':
if sys.platform in ('linux','darwin'):
os_user = os.environ['USER']
else:
os_user = os.environ['USERNAME']

View File

@ -66,7 +66,7 @@ class CreateSessionAF:
global mdp_1st_cnx
mdp_1st_cnx = bd_cen_mdp_1st_cnx
global os_user
if sys.platform == 'linux':
if sys.platform in ('linux','darwin'):
os_user = os.environ['USER']
else:
os_user = os.environ['USERNAME']

View File

@ -65,7 +65,7 @@ class ParcelleToActe:
global mdp_1st_cnx
mdp_1st_cnx = bd_cen_mdp_1st_cnx
global os_user
if sys.platform == 'linux':
if sys.platform in ('linux','darwin'):
os_user = os.environ['USER']
else:
os_user = os.environ['USERNAME']

View File

@ -65,7 +65,7 @@ class ParcelleToSite:
global mdp_1st_cnx
mdp_1st_cnx = bd_cen_mdp_1st_cnx
global os_user
if sys.platform == 'linux':
if sys.platform in ('linux','darwin'):
os_user = os.environ['USER']
else:
os_user = os.environ['USERNAME']