I am writing a custom testing library for Robot Framework
in Python
and I want to import it like this:
Library CustomLibrary
I put the folder containing the source code on the PYTHONPATH
but I am still getting the error: Importing test library 'CustomLibrary' failed: ImportError: No module named CustomLibrary
The CustomLibrary
class is defined in the __init__.py
file, like in the AppiumLibrary
like this:
from CustomLibrary.keywords import *
class CustomLibrary(_CustomKeywords):
ROBOT_LIBRARY_SCOPE = 'GLOBAL'
How can I solve this problem, so I can import it in Robot Framework? I want to keep the class definition inside the init file.