+ OrchestratorRestart - linux way error #35

Open
opened 2 years ago by UnicodeLabs · 1 comments
UnicodeLabs commented 2 years ago (Migrated from gitlab.com)

def OrchestratorRestart(inGSettings=None):
"""L+,W+: Перезапуск Оркестратора с сохранением информации о запущенных RDP сессиях.

:param inGSettings: Глобальный словарь настроек Оркестратора (синглтон)
"""
inGSettings = GSettingsGet(inGSettings=inGSettings)  # Set the global settings
OrchestratorSessionSave(inGSettings=inGSettings) # Dump RDP List in file json
if inGSettings is not None:
    lL = inGSettings["Logger"]
    if lL: lL.info(f"Выполнить перезапуск оркестратора")
# Restart session
if CrossOS.IS_WINDOWS_BOOL: os.execl(sys.executable, os.path.abspath(__file__), *sys.argv)
if CrossOS.IS_LINUX_BOOL: os.execl(sys.executable, sys.executable, *sys.argv)
sys.exit(0)
def OrchestratorRestart(inGSettings=None): """L+,W+: Перезапуск Оркестратора с сохранением информации о запущенных RDP сессиях. :param inGSettings: Глобальный словарь настроек Оркестратора (синглтон) """ inGSettings = GSettingsGet(inGSettings=inGSettings) # Set the global settings OrchestratorSessionSave(inGSettings=inGSettings) # Dump RDP List in file json if inGSettings is not None: lL = inGSettings["Logger"] if lL: lL.info(f"Выполнить перезапуск оркестратора") # Restart session if CrossOS.IS_WINDOWS_BOOL: os.execl(sys.executable, os.path.abspath(__file__), *sys.argv) if CrossOS.IS_LINUX_BOOL: os.execl(sys.executable, sys.executable, *sys.argv) sys.exit(0)
UnicodeLabs commented 1 year ago (Migrated from gitlab.com)

changed title from OrchestratorRestart - linux way error to {++ +}OrchestratorRestart - linux way error

changed title from **OrchestratorRestart - linux way error** to **{++ +}OrchestratorRestart - linux way error**
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: OPEN_RPA_PUBLIC/ORPA-pyOpenRPA#35
Loading…
There is no content yet.