yanne / api-testing

I am using this to test GitHub API
1 stars 0 forks source link

support --pythonpath #326

Open yanne opened 10 years ago

yanne commented 10 years ago

Please provide a property to tweak PYTHONPATH, for Robot libraries which import external libraries.

libdoc.py has a nice --pythonpath option for that.

This issue was originally opened at Google Code on May 6, 2011.

yanne commented 10 years ago

Original comment by dietrich...@googlemail.com on May 6, 2011.

The run goal already supports pythonpath, the option is called extraPathDirectories. Do you mean to support it for libdoc as well?

yanne commented 10 years ago

Original comment by hiva...@mailcatch.com on May 9, 2011.

Do you mean to support it for libdoc as well

Exactly. The point is that libdoc tries to import the module to be documented, and if this one has dependencies on modules in non-standard locations, libdoc fails. Being able to modify the PYTHONPATH would allow to workaround this.

A question of it's own is if libdoc should really import a module to be documented, but this is a general issue I should ask libdoc.py authors I guess - ?