How to call python module in Robot platform

I have the following folder structure for python scripts.

enter image description here

From Python, I can run the script in the Feed2Scripts folder as follows. Is this possible in Robot Frame Work through imported libraries? > Please note that I have common scripts in "GeneralScripts" used by all other scripts in different folders

  ../Scripts>python –m Feed2Scripts.Script1 param1

If I'm just import Feed2Scripts/Script1.pylike a library in the Russian Federation, then it does not load libraries defined by "GeneralScripts"

+4
source share
1 answer

python RIDE Tools->Preferences->Importing Pythonpath, ( ..), :

RIDE Settings - Pythonpath

add library, , library Edit, :

RIDE - Add a library to the test suite

, , . library Settings ( RIDE Text Edit :

RIDE Library Import Text Edit Tab Test Suite

RIDE . Save all (CTRL+SHIFT+S) RIDE, .

, RIDE Edit; , - . , RIDE Tools->View Ride Log.

+3

Source: https://habr.com/ru/post/1669964/


All Articles