|
16 | 16 | from xtl.automate.shells import Shell, BashShell |
17 | 17 | from xtl.automate.sites import ComputeSite |
18 | 18 | from xtl.automate.jobs import Job, limited_concurrency |
19 | | -from xtl.common.os import get_os_name_and_version, chmod_recursively |
| 19 | +from xtl.common.os import get_os_name_and_version, chmod_recursively, get_username |
20 | 20 | from xtl.diffraction.images.datasets import DiffractionDataset |
21 | 21 | from xtl.diffraction.automate.autoproc_utils import AutoPROCConfig, AutoPROCJobResults |
22 | 22 | from xtl.exceptions.utils import Catcher |
@@ -259,7 +259,7 @@ def _get_macro_content(self) -> str: |
259 | 259 | content = [ |
260 | 260 | f'# autoPROC macro file', |
261 | 261 | f'# Generated by xtl v.{__version__} on {datetime.now().isoformat()}', |
262 | | - f'# {os.getlogin()}@{platform.node()} [{get_os_name_and_version()}]', |
| 262 | + f'# {get_username()}@{platform.node()} [{get_os_name_and_version()}]', |
263 | 263 | f'' |
264 | 264 | ] |
265 | 265 |
|
@@ -664,7 +664,7 @@ def _get_macro_content(self) -> str: |
664 | 664 | content = [ |
665 | 665 | f'# aP_wf_process macro file', |
666 | 666 | f'# Generated by xtl v.{__version__} on {datetime.now().isoformat()}', |
667 | | - f'# {os.getlogin()}@{platform.node()} [{get_os_name_and_version()}]', |
| 667 | + f'# {get_username()}@{platform.node()} [{get_os_name_and_version()}]', |
668 | 668 | f'' |
669 | 669 | ] |
670 | 670 |
|
|
0 commit comments