Signed-off-by: Ivan Maslov <Ivan.Maslov@UnicodeLabs.ru>dev-linux
parent
215ca959eb
commit
ac13d6044a
@ -1,23 +0,0 @@
|
|||||||
pyOpenRPA-1.0.16.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
|
||||||
pyOpenRPA-1.0.16.dist-info/METADATA,sha256=IxqPZ8XpKYmxZBKQJFZR1j41tmovw8AqcFBpZv03ubY,3510
|
|
||||||
pyOpenRPA-1.0.16.dist-info/RECORD,,
|
|
||||||
pyOpenRPA-1.0.16.dist-info/WHEEL,sha256=qB97nP5e4MrOsXW5bIU5cUn_KSVr10EV0l-GCHG9qNs,97
|
|
||||||
pyOpenRPA-1.0.16.dist-info/top_level.txt,sha256=RPzwQXgYBRo_m5L3ZLs6Voh8aEkMeT29Xsul1w1qE0g,10
|
|
||||||
pyOpenRPA/Clipboard.py,sha256=q76X8L21zJwcwdoJJNPeCEwAV30xS6ylHP1WwvtxoWI,722
|
|
||||||
pyOpenRPA/IntegrationOrchestrator.py,sha256=T1g1jJM7_JMTSVP50DTM5WHrMh1w8wovvcBXl1nEokU,2656
|
|
||||||
pyOpenRPA/JSONNormalize.py,sha256=aIuVzuZDazhxkCOzoOjfhHVz66mp2FWdfPv5E7KWF5Y,3890
|
|
||||||
pyOpenRPA/ProcessCommunicator.py,sha256=eT_NgoAQBUxSu9alCGxuauuussrP50HDoiBA9JcUkOc,8114
|
|
||||||
pyOpenRPA/Robot.py,sha256=41eZQMflqf7B8GnTn1mTJ_Dm8-k8CfSRFy1_He6ZLME,9471
|
|
||||||
pyOpenRPA/UIDesktop.py,sha256=AJPHt5z2W4AL9xsM1-YptCjFOUO-dj5kQVraelux_yU,68732
|
|
||||||
pyOpenRPA/ValueVerify.py,sha256=ObskxU4fOMoCGw74_nzYt6-a5jjrAckb3sdBLYyhYxY,777
|
|
||||||
pyOpenRPA/Window.py,sha256=UJl-sg4RvvJ35aG9jZOzqGVwE15XK7qPHqoOBD13xFk,431
|
|
||||||
pyOpenRPA/__init__.py,sha256=BTpZhIhxiw-a5cDUoMZxNpPiTEAvRV6v09sDC0MtRVI,399
|
|
||||||
pyOpenRPA/__pycache__/Clipboard.cpython-37.pyc,,
|
|
||||||
pyOpenRPA/__pycache__/IntegrationOrchestrator.cpython-37.pyc,,
|
|
||||||
pyOpenRPA/__pycache__/JSONNormalize.cpython-37.pyc,,
|
|
||||||
pyOpenRPA/__pycache__/ProcessCommunicator.cpython-37.pyc,,
|
|
||||||
pyOpenRPA/__pycache__/Robot.cpython-37.pyc,,
|
|
||||||
pyOpenRPA/__pycache__/UIDesktop.cpython-37.pyc,,
|
|
||||||
pyOpenRPA/__pycache__/ValueVerify.cpython-37.pyc,,
|
|
||||||
pyOpenRPA/__pycache__/Window.cpython-37.pyc,,
|
|
||||||
pyOpenRPA/__pycache__/__init__.cpython-37.pyc,,
|
|
@ -1,6 +1,6 @@
|
|||||||
Metadata-Version: 2.1
|
Metadata-Version: 2.1
|
||||||
Name: pyOpenRPA
|
Name: pyOpenRPA
|
||||||
Version: 1.0.16
|
Version: 1.0.22
|
||||||
Summary: First open source RPA platform for business
|
Summary: First open source RPA platform for business
|
||||||
Home-page: https://gitlab.com/UnicodeLabs/OpenRPA
|
Home-page: https://gitlab.com/UnicodeLabs/OpenRPA
|
||||||
Author: Ivan Maslov
|
Author: Ivan Maslov
|
@ -0,0 +1,27 @@
|
|||||||
|
pyOpenRPA-1.0.22.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
||||||
|
pyOpenRPA-1.0.22.dist-info/METADATA,sha256=GrJ-YM4RtTzh2wmphmCaGjTXG77VNqi9H94eSqsJor8,3510
|
||||||
|
pyOpenRPA-1.0.22.dist-info/RECORD,,
|
||||||
|
pyOpenRPA-1.0.22.dist-info/WHEEL,sha256=qB97nP5e4MrOsXW5bIU5cUn_KSVr10EV0l-GCHG9qNs,97
|
||||||
|
pyOpenRPA-1.0.22.dist-info/top_level.txt,sha256=RPzwQXgYBRo_m5L3ZLs6Voh8aEkMeT29Xsul1w1qE0g,10
|
||||||
|
pyOpenRPA/Core/Clipboard.py,sha256=q76X8L21zJwcwdoJJNPeCEwAV30xS6ylHP1WwvtxoWI,722
|
||||||
|
pyOpenRPA/Core/IntegrationOrchestrator.py,sha256=T1g1jJM7_JMTSVP50DTM5WHrMh1w8wovvcBXl1nEokU,2656
|
||||||
|
pyOpenRPA/Core/JSONNormalize.py,sha256=aIuVzuZDazhxkCOzoOjfhHVz66mp2FWdfPv5E7KWF5Y,3890
|
||||||
|
pyOpenRPA/Core/ProcessCommunicator.py,sha256=Mpo2WoCrEUmY6aCSbQEXkT4qVKtN1N5NcVvG_UZxGVo,8245
|
||||||
|
pyOpenRPA/Core/Robot.py,sha256=z7tn7JVBPVWEwDFHVLJljxiOjKcT0u878SPoPwmipyQ,9429
|
||||||
|
pyOpenRPA/Core/UIDesktop.py,sha256=sUDelnGuL-9Kcw-eS5RzMnR3ynjoDokmJvkHZJdeY3o,66206
|
||||||
|
pyOpenRPA/Core/ValueVerify.py,sha256=ObskxU4fOMoCGw74_nzYt6-a5jjrAckb3sdBLYyhYxY,777
|
||||||
|
pyOpenRPA/Core/Window.py,sha256=UJl-sg4RvvJ35aG9jZOzqGVwE15XK7qPHqoOBD13xFk,431
|
||||||
|
pyOpenRPA/Core/__init__.py,sha256=iEW3SGBJf3kYa1zocGH5vEK0woejzJpnQfOmQtIA3P0,324
|
||||||
|
pyOpenRPA/Core/__pycache__/Clipboard.cpython-37.pyc,,
|
||||||
|
pyOpenRPA/Core/__pycache__/IntegrationOrchestrator.cpython-37.pyc,,
|
||||||
|
pyOpenRPA/Core/__pycache__/JSONNormalize.cpython-37.pyc,,
|
||||||
|
pyOpenRPA/Core/__pycache__/ProcessCommunicator.cpython-37.pyc,,
|
||||||
|
pyOpenRPA/Core/__pycache__/Robot.cpython-37.pyc,,
|
||||||
|
pyOpenRPA/Core/__pycache__/UIDesktop.cpython-37.pyc,,
|
||||||
|
pyOpenRPA/Core/__pycache__/ValueVerify.cpython-37.pyc,,
|
||||||
|
pyOpenRPA/Core/__pycache__/Window.cpython-37.pyc,,
|
||||||
|
pyOpenRPA/Core/__pycache__/__init__.cpython-37.pyc,,
|
||||||
|
pyOpenRPA/__init__.py,sha256=dur8ut_EUSobQtipejot0tiYeVoMhtaFLISIkoydBrU,204
|
||||||
|
pyOpenRPA/__main__.py,sha256=uJUcpj4bbAno4uaks8TxUh5woV-RK5_E8s5h6PqYw_M,1916
|
||||||
|
pyOpenRPA/__pycache__/__init__.cpython-37.pyc,,
|
||||||
|
pyOpenRPA/__pycache__/__main__.cpython-37.pyc,,
|
@ -0,0 +1,13 @@
|
|||||||
|
r"""
|
||||||
|
|
||||||
|
The OpenRPA package (from UnicodeLabs)
|
||||||
|
|
||||||
|
"""
|
||||||
|
__all__ = [
|
||||||
|
'UIDesktop', 'Clipboard', 'IntegrationOrchestrator', 'Window', 'ProcessCommunicator'
|
||||||
|
]
|
||||||
|
__author__ = 'Ivan Maslov <ivan.maslov@unicodelabs.ru>'
|
||||||
|
#from . import UIDesktop
|
||||||
|
from . import Clipboard
|
||||||
|
from . import Window
|
||||||
|
from . import ProcessCommunicator
|
@ -0,0 +1,39 @@
|
|||||||
|
r"""
|
||||||
|
The OpenRPA package (from UnicodeLabs/Ivan Maslov)
|
||||||
|
__main__ file goes outside the package and used like a main file when the python runs module directly from start
|
||||||
|
"""
|
||||||
|
#If run as python executable module, need to set python path in pyOpenRPA package to load subpackge
|
||||||
|
import sys
|
||||||
|
lFolderPath= "\\".join(__file__.split("\\")[:-1])
|
||||||
|
sys.path.append(lFolderPath)
|
||||||
|
################################
|
||||||
|
import traceback
|
||||||
|
from Core import ProcessCommunicator
|
||||||
|
from Core import JSONNormalize
|
||||||
|
from Core import UIDesktop
|
||||||
|
##########################################
|
||||||
|
#Run UIDesktop from new process. Communication with paren process by PIPE channel
|
||||||
|
##########################################
|
||||||
|
#Определить разрядность процесса
|
||||||
|
buffer = ""
|
||||||
|
lJSONInputString=""
|
||||||
|
while True:
|
||||||
|
#Reset the lProcessResponse
|
||||||
|
lProcessResponse={"ErrorFlag":False}
|
||||||
|
try:
|
||||||
|
#Ожидаем синхронно поступление объекта
|
||||||
|
lJSONInput = ProcessCommunicator.ProcessParentReadWaitObject()
|
||||||
|
lProcessResponse["ActivitySpecificationDict"]=lJSONInput
|
||||||
|
#Выполнить вызов функции
|
||||||
|
lFunction = getattr(UIDesktop,lJSONInput['ActivityName'])
|
||||||
|
lProcessResponse["Result"]=JSONNormalize.JSONNormalizeDictListStrIntBool(lFunction(*lJSONInput['ArgumentList'],**lJSONInput['ArgumentDict']))
|
||||||
|
except Exception as e:
|
||||||
|
#Установить флаг ошибки
|
||||||
|
lProcessResponse["ErrorFlag"]=True
|
||||||
|
#Зафиксировать traceback
|
||||||
|
lProcessResponse["ErrorTraceback"]=traceback.format_exc()
|
||||||
|
#Зафиксировать Error message
|
||||||
|
lProcessResponse["ErrorMessage"]=str(e)
|
||||||
|
#lProcessResponse["ErrorArgs"]=str(e.args)
|
||||||
|
#Отправить ответ в родительский процесс
|
||||||
|
ProcessCommunicator.ProcessParentWriteObject(lProcessResponse)
|
@ -1,23 +0,0 @@
|
|||||||
pyOpenRPA-1.0.16.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
|
||||||
pyOpenRPA-1.0.16.dist-info/METADATA,sha256=IxqPZ8XpKYmxZBKQJFZR1j41tmovw8AqcFBpZv03ubY,3510
|
|
||||||
pyOpenRPA-1.0.16.dist-info/RECORD,,
|
|
||||||
pyOpenRPA-1.0.16.dist-info/WHEEL,sha256=qB97nP5e4MrOsXW5bIU5cUn_KSVr10EV0l-GCHG9qNs,97
|
|
||||||
pyOpenRPA-1.0.16.dist-info/top_level.txt,sha256=RPzwQXgYBRo_m5L3ZLs6Voh8aEkMeT29Xsul1w1qE0g,10
|
|
||||||
pyOpenRPA/Clipboard.py,sha256=q76X8L21zJwcwdoJJNPeCEwAV30xS6ylHP1WwvtxoWI,722
|
|
||||||
pyOpenRPA/IntegrationOrchestrator.py,sha256=T1g1jJM7_JMTSVP50DTM5WHrMh1w8wovvcBXl1nEokU,2656
|
|
||||||
pyOpenRPA/JSONNormalize.py,sha256=aIuVzuZDazhxkCOzoOjfhHVz66mp2FWdfPv5E7KWF5Y,3890
|
|
||||||
pyOpenRPA/ProcessCommunicator.py,sha256=eT_NgoAQBUxSu9alCGxuauuussrP50HDoiBA9JcUkOc,8114
|
|
||||||
pyOpenRPA/Robot.py,sha256=41eZQMflqf7B8GnTn1mTJ_Dm8-k8CfSRFy1_He6ZLME,9471
|
|
||||||
pyOpenRPA/UIDesktop.py,sha256=AJPHt5z2W4AL9xsM1-YptCjFOUO-dj5kQVraelux_yU,68732
|
|
||||||
pyOpenRPA/ValueVerify.py,sha256=ObskxU4fOMoCGw74_nzYt6-a5jjrAckb3sdBLYyhYxY,777
|
|
||||||
pyOpenRPA/Window.py,sha256=UJl-sg4RvvJ35aG9jZOzqGVwE15XK7qPHqoOBD13xFk,431
|
|
||||||
pyOpenRPA/__init__.py,sha256=BTpZhIhxiw-a5cDUoMZxNpPiTEAvRV6v09sDC0MtRVI,399
|
|
||||||
pyOpenRPA/__pycache__/Clipboard.cpython-37.pyc,,
|
|
||||||
pyOpenRPA/__pycache__/IntegrationOrchestrator.cpython-37.pyc,,
|
|
||||||
pyOpenRPA/__pycache__/JSONNormalize.cpython-37.pyc,,
|
|
||||||
pyOpenRPA/__pycache__/ProcessCommunicator.cpython-37.pyc,,
|
|
||||||
pyOpenRPA/__pycache__/Robot.cpython-37.pyc,,
|
|
||||||
pyOpenRPA/__pycache__/UIDesktop.cpython-37.pyc,,
|
|
||||||
pyOpenRPA/__pycache__/ValueVerify.cpython-37.pyc,,
|
|
||||||
pyOpenRPA/__pycache__/Window.cpython-37.pyc,,
|
|
||||||
pyOpenRPA/__pycache__/__init__.cpython-37.pyc,,
|
|
@ -1,6 +1,6 @@
|
|||||||
Metadata-Version: 2.1
|
Metadata-Version: 2.1
|
||||||
Name: pyOpenRPA
|
Name: pyOpenRPA
|
||||||
Version: 1.0.16
|
Version: 1.0.22
|
||||||
Summary: First open source RPA platform for business
|
Summary: First open source RPA platform for business
|
||||||
Home-page: https://gitlab.com/UnicodeLabs/OpenRPA
|
Home-page: https://gitlab.com/UnicodeLabs/OpenRPA
|
||||||
Author: Ivan Maslov
|
Author: Ivan Maslov
|
@ -0,0 +1,27 @@
|
|||||||
|
pyOpenRPA-1.0.22.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
||||||
|
pyOpenRPA-1.0.22.dist-info/METADATA,sha256=GrJ-YM4RtTzh2wmphmCaGjTXG77VNqi9H94eSqsJor8,3510
|
||||||
|
pyOpenRPA-1.0.22.dist-info/RECORD,,
|
||||||
|
pyOpenRPA-1.0.22.dist-info/WHEEL,sha256=qB97nP5e4MrOsXW5bIU5cUn_KSVr10EV0l-GCHG9qNs,97
|
||||||
|
pyOpenRPA-1.0.22.dist-info/top_level.txt,sha256=RPzwQXgYBRo_m5L3ZLs6Voh8aEkMeT29Xsul1w1qE0g,10
|
||||||
|
pyOpenRPA/Core/Clipboard.py,sha256=q76X8L21zJwcwdoJJNPeCEwAV30xS6ylHP1WwvtxoWI,722
|
||||||
|
pyOpenRPA/Core/IntegrationOrchestrator.py,sha256=T1g1jJM7_JMTSVP50DTM5WHrMh1w8wovvcBXl1nEokU,2656
|
||||||
|
pyOpenRPA/Core/JSONNormalize.py,sha256=aIuVzuZDazhxkCOzoOjfhHVz66mp2FWdfPv5E7KWF5Y,3890
|
||||||
|
pyOpenRPA/Core/ProcessCommunicator.py,sha256=Mpo2WoCrEUmY6aCSbQEXkT4qVKtN1N5NcVvG_UZxGVo,8245
|
||||||
|
pyOpenRPA/Core/Robot.py,sha256=z7tn7JVBPVWEwDFHVLJljxiOjKcT0u878SPoPwmipyQ,9429
|
||||||
|
pyOpenRPA/Core/UIDesktop.py,sha256=sUDelnGuL-9Kcw-eS5RzMnR3ynjoDokmJvkHZJdeY3o,66206
|
||||||
|
pyOpenRPA/Core/ValueVerify.py,sha256=ObskxU4fOMoCGw74_nzYt6-a5jjrAckb3sdBLYyhYxY,777
|
||||||
|
pyOpenRPA/Core/Window.py,sha256=UJl-sg4RvvJ35aG9jZOzqGVwE15XK7qPHqoOBD13xFk,431
|
||||||
|
pyOpenRPA/Core/__init__.py,sha256=iEW3SGBJf3kYa1zocGH5vEK0woejzJpnQfOmQtIA3P0,324
|
||||||
|
pyOpenRPA/Core/__pycache__/Clipboard.cpython-37.pyc,,
|
||||||
|
pyOpenRPA/Core/__pycache__/IntegrationOrchestrator.cpython-37.pyc,,
|
||||||
|
pyOpenRPA/Core/__pycache__/JSONNormalize.cpython-37.pyc,,
|
||||||
|
pyOpenRPA/Core/__pycache__/ProcessCommunicator.cpython-37.pyc,,
|
||||||
|
pyOpenRPA/Core/__pycache__/Robot.cpython-37.pyc,,
|
||||||
|
pyOpenRPA/Core/__pycache__/UIDesktop.cpython-37.pyc,,
|
||||||
|
pyOpenRPA/Core/__pycache__/ValueVerify.cpython-37.pyc,,
|
||||||
|
pyOpenRPA/Core/__pycache__/Window.cpython-37.pyc,,
|
||||||
|
pyOpenRPA/Core/__pycache__/__init__.cpython-37.pyc,,
|
||||||
|
pyOpenRPA/__init__.py,sha256=dur8ut_EUSobQtipejot0tiYeVoMhtaFLISIkoydBrU,204
|
||||||
|
pyOpenRPA/__main__.py,sha256=uJUcpj4bbAno4uaks8TxUh5woV-RK5_E8s5h6PqYw_M,1916
|
||||||
|
pyOpenRPA/__pycache__/__init__.cpython-37.pyc,,
|
||||||
|
pyOpenRPA/__pycache__/__main__.cpython-37.pyc,,
|
@ -0,0 +1,13 @@
|
|||||||
|
r"""
|
||||||
|
|
||||||
|
The OpenRPA package (from UnicodeLabs)
|
||||||
|
|
||||||
|
"""
|
||||||
|
__all__ = [
|
||||||
|
'UIDesktop', 'Clipboard', 'IntegrationOrchestrator', 'Window', 'ProcessCommunicator'
|
||||||
|
]
|
||||||
|
__author__ = 'Ivan Maslov <ivan.maslov@unicodelabs.ru>'
|
||||||
|
#from . import UIDesktop
|
||||||
|
from . import Clipboard
|
||||||
|
from . import Window
|
||||||
|
from . import ProcessCommunicator
|
@ -0,0 +1,39 @@
|
|||||||
|
r"""
|
||||||
|
The OpenRPA package (from UnicodeLabs/Ivan Maslov)
|
||||||
|
__main__ file goes outside the package and used like a main file when the python runs module directly from start
|
||||||
|
"""
|
||||||
|
#If run as python executable module, need to set python path in pyOpenRPA package to load subpackge
|
||||||
|
import sys
|
||||||
|
lFolderPath= "\\".join(__file__.split("\\")[:-1])
|
||||||
|
sys.path.append(lFolderPath)
|
||||||
|
################################
|
||||||
|
import traceback
|
||||||
|
from Core import ProcessCommunicator
|
||||||
|
from Core import JSONNormalize
|
||||||
|
from Core import UIDesktop
|
||||||
|
##########################################
|
||||||
|
#Run UIDesktop from new process. Communication with paren process by PIPE channel
|
||||||
|
##########################################
|
||||||
|
#Определить разрядность процесса
|
||||||
|
buffer = ""
|
||||||
|
lJSONInputString=""
|
||||||
|
while True:
|
||||||
|
#Reset the lProcessResponse
|
||||||
|
lProcessResponse={"ErrorFlag":False}
|
||||||
|
try:
|
||||||
|
#Ожидаем синхронно поступление объекта
|
||||||
|
lJSONInput = ProcessCommunicator.ProcessParentReadWaitObject()
|
||||||
|
lProcessResponse["ActivitySpecificationDict"]=lJSONInput
|
||||||
|
#Выполнить вызов функции
|
||||||
|
lFunction = getattr(UIDesktop,lJSONInput['ActivityName'])
|
||||||
|
lProcessResponse["Result"]=JSONNormalize.JSONNormalizeDictListStrIntBool(lFunction(*lJSONInput['ArgumentList'],**lJSONInput['ArgumentDict']))
|
||||||
|
except Exception as e:
|
||||||
|
#Установить флаг ошибки
|
||||||
|
lProcessResponse["ErrorFlag"]=True
|
||||||
|
#Зафиксировать traceback
|
||||||
|
lProcessResponse["ErrorTraceback"]=traceback.format_exc()
|
||||||
|
#Зафиксировать Error message
|
||||||
|
lProcessResponse["ErrorMessage"]=str(e)
|
||||||
|
#lProcessResponse["ErrorArgs"]=str(e.args)
|
||||||
|
#Отправить ответ в родительский процесс
|
||||||
|
ProcessCommunicator.ProcessParentWriteObject(lProcessResponse)
|
@ -1,16 +1,18 @@
|
|||||||
setup.py
|
setup.py
|
||||||
pyOpenRPA/Clipboard.py
|
|
||||||
pyOpenRPA/IntegrationOrchestrator.py
|
|
||||||
pyOpenRPA/JSONNormalize.py
|
|
||||||
pyOpenRPA/ProcessCommunicator.py
|
|
||||||
pyOpenRPA/Robot.py
|
|
||||||
pyOpenRPA/UIDesktop.py
|
|
||||||
pyOpenRPA/ValueVerify.py
|
|
||||||
pyOpenRPA/Window.py
|
|
||||||
pyOpenRPA/__init__.py
|
pyOpenRPA/__init__.py
|
||||||
|
pyOpenRPA/__main__.py
|
||||||
pyOpenRPA.egg-info/PKG-INFO
|
pyOpenRPA.egg-info/PKG-INFO
|
||||||
pyOpenRPA.egg-info/SOURCES.txt
|
pyOpenRPA.egg-info/SOURCES.txt
|
||||||
pyOpenRPA.egg-info/dependency_links.txt
|
pyOpenRPA.egg-info/dependency_links.txt
|
||||||
pyOpenRPA.egg-info/not-zip-safe
|
pyOpenRPA.egg-info/not-zip-safe
|
||||||
pyOpenRPA.egg-info/requires.txt
|
pyOpenRPA.egg-info/requires.txt
|
||||||
pyOpenRPA.egg-info/top_level.txt
|
pyOpenRPA.egg-info/top_level.txt
|
||||||
|
pyOpenRPA/Core/Clipboard.py
|
||||||
|
pyOpenRPA/Core/IntegrationOrchestrator.py
|
||||||
|
pyOpenRPA/Core/JSONNormalize.py
|
||||||
|
pyOpenRPA/Core/ProcessCommunicator.py
|
||||||
|
pyOpenRPA/Core/Robot.py
|
||||||
|
pyOpenRPA/Core/UIDesktop.py
|
||||||
|
pyOpenRPA/Core/ValueVerify.py
|
||||||
|
pyOpenRPA/Core/Window.py
|
||||||
|
pyOpenRPA/Core/__init__.py
|
@ -0,0 +1,13 @@
|
|||||||
|
r"""
|
||||||
|
|
||||||
|
The OpenRPA package (from UnicodeLabs)
|
||||||
|
|
||||||
|
"""
|
||||||
|
__all__ = [
|
||||||
|
'UIDesktop', 'Clipboard', 'IntegrationOrchestrator', 'Window', 'ProcessCommunicator'
|
||||||
|
]
|
||||||
|
__author__ = 'Ivan Maslov <ivan.maslov@unicodelabs.ru>'
|
||||||
|
#from . import UIDesktop
|
||||||
|
from . import Clipboard
|
||||||
|
from . import Window
|
||||||
|
from . import ProcessCommunicator
|
@ -0,0 +1 @@
|
|||||||
|
Main pyOpenRPA level is designed to has 2 method of module call: by PIPE or by import
|
@ -0,0 +1,39 @@
|
|||||||
|
r"""
|
||||||
|
The OpenRPA package (from UnicodeLabs/Ivan Maslov)
|
||||||
|
__main__ file goes outside the package and used like a main file when the python runs module directly from start
|
||||||
|
"""
|
||||||
|
#If run as python executable module, need to set python path in pyOpenRPA package to load subpackge
|
||||||
|
import sys
|
||||||
|
lFolderPath= "\\".join(__file__.split("\\")[:-1])
|
||||||
|
sys.path.append(lFolderPath)
|
||||||
|
################################
|
||||||
|
import traceback
|
||||||
|
from Core import ProcessCommunicator
|
||||||
|
from Core import JSONNormalize
|
||||||
|
from Core import UIDesktop
|
||||||
|
##########################################
|
||||||
|
#Run UIDesktop from new process. Communication with paren process by PIPE channel
|
||||||
|
##########################################
|
||||||
|
#Определить разрядность процесса
|
||||||
|
buffer = ""
|
||||||
|
lJSONInputString=""
|
||||||
|
while True:
|
||||||
|
#Reset the lProcessResponse
|
||||||
|
lProcessResponse={"ErrorFlag":False}
|
||||||
|
try:
|
||||||
|
#Ожидаем синхронно поступление объекта
|
||||||
|
lJSONInput = ProcessCommunicator.ProcessParentReadWaitObject()
|
||||||
|
lProcessResponse["ActivitySpecificationDict"]=lJSONInput
|
||||||
|
#Выполнить вызов функции
|
||||||
|
lFunction = getattr(UIDesktop,lJSONInput['ActivityName'])
|
||||||
|
lProcessResponse["Result"]=JSONNormalize.JSONNormalizeDictListStrIntBool(lFunction(*lJSONInput['ArgumentList'],**lJSONInput['ArgumentDict']))
|
||||||
|
except Exception as e:
|
||||||
|
#Установить флаг ошибки
|
||||||
|
lProcessResponse["ErrorFlag"]=True
|
||||||
|
#Зафиксировать traceback
|
||||||
|
lProcessResponse["ErrorTraceback"]=traceback.format_exc()
|
||||||
|
#Зафиксировать Error message
|
||||||
|
lProcessResponse["ErrorMessage"]=str(e)
|
||||||
|
#lProcessResponse["ErrorArgs"]=str(e.args)
|
||||||
|
#Отправить ответ в родительский процесс
|
||||||
|
ProcessCommunicator.ProcessParentWriteObject(lProcessResponse)
|
@ -0,0 +1,3 @@
|
|||||||
|
cd %~dp0
|
||||||
|
.\..\Resources\WPy64-3720\python-3.7.2.amd64\python.exe
|
||||||
|
pause >nul
|
Loading…
Reference in new issue