pabot icon indicating copy to clipboard operation
pabot copied to clipboard

pabot.SharedLibrary ignores paths used with --pythonpath

Open robooo opened this issue 4 years ago • 3 comments

Hi, I have structure like

  • tests -- suite1 -- suite2
  • my_resources -- resource1 -- resource2

I use in pabot command --pythonpath my_resources and after that I'm able to do Library resource1 for example. But the Library pabot.SharedLibrary resource1 doesn't work because this method looks just into system python paths like /usr/local/lib/python3.7/.

What is the easiest fix in my case? I can't install / move this resource globally.

Thank you!

robooo avatar May 13 '20 08:05 robooo

Thanks for the issue report!

mkorpela avatar May 13 '20 12:05 mkorpela

I think you might bypass this limitation by adding your my_resources to PYTHONPATH environment variable.

mkorpela avatar May 13 '20 20:05 mkorpela

If it's more complex to fix I'm ok with that solution ;) maybe it can be mentioned in the documentation?

robooo avatar May 13 '20 21:05 robooo