python/osmo-python-tests[master]: Fix absolute import issue in py3

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Max gerrit-no-reply at lists.osmocom.org
Mon Jan 15 12:20:57 UTC 2018


Patch Set 2:

> In osmo-gsm-tester we use 'from . import foo'.

That won't work because tests are in separate subdirectory so we should go one level up.

> possible could be a symlink

I'd rather keep it in one single place next to comment with explanation.

> with a PYTHONPATH env variable set

I think this is discouraged. Also see previous comment.

> I'd prefer either of those to mangling the python path

I'd prefer to make "from ..osmopy" working but let's first fix the immediate problem at hand and do "nice to have" things later on.

-- 
To view, visit https://gerrit.osmocom.org/5777
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I8ac3c0d45fb2e1d18646048703ac405be1c7e539
Gerrit-PatchSet: 2
Gerrit-Project: python/osmo-python-tests
Gerrit-Branch: master
Gerrit-Owner: Max <msuraev at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Max <msuraev at sysmocom.de>
Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Pau Espin Pedrol <pespin at sysmocom.de>
Gerrit-Reviewer: neels <nhofmeyr at sysmocom.de>
Gerrit-HasComments: No



More information about the gerrit-log mailing list