boakley / robotframework-hub

Web app for accessing robot framework assets
https://github.com/boakley/robotframework-hub/wiki
Apache License 2.0
170 stars 60 forks source link

support for pythonpath installed ressources #50

Closed RonnyPfannschmidt closed 4 years ago

RonnyPfannschmidt commented 9 years ago

at work we ship common ressources together with a python library, however the hub doesnt support listing those

boakley commented 9 years ago

The hub already supports this. For example, if I create a file named customkeywords.py in a folder, put that folder on PYTHONPATH, and then give the name customkeywords to the hub, it will find the keywords

$ export PYTHONPATH=/tmp
...
$ python -m rfhub customkeywords
RonnyPfannschmidt commented 9 years ago

i'm talking about *.robot files, not python modules, python modules already wok fabulous

RonnyPfannschmidt commented 9 years ago

basially we have a structure that looks like:

ourlib/__init__.py # python keywords
ourlib/resources/common/foo_control.robot  # robot keywords in text fomrat that are shared
....
niravsh commented 8 years ago

We have .txt resource files and as long as they are specified correctly, the hub finds all keywords fine.

RonnyPfannschmidt commented 4 years ago

closing to get if off my plate on github