boakley / robotframework-hub

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

change relational imports for Python 3 compatibility #74

Open Sir-Nightmare opened 7 years ago

Sir-Nightmare commented 7 years ago

I had problems with launching hub with Python 3.5, so I changed imports according to python docs. https://docs.python.org/3/tutorial/modules.html#intra-package-references

databobek commented 5 years ago

@boakley this code is necessary, because in this scenario, py3 is looking for kwdb in PYTHONPATH while it is a local file. Adding the code proposed by @Sir-Nightmare tells py3: "it's here, don't look anywhere else". This is the reason for import kwdb crash.