As the servers are supposed to be launched, their imports
cannot be relatives.
Details
Details
- Reviewers
ardumont - Group Reviewers
Reviewers - Commits
- rDSTOC2c719ee74b4a: Change the server's imports to absolute ones
R65:2c719ee74b4a: Change the server's imports to absolute ones
rDOBJS3e6c9817bd51: Change the server's imports to absolute ones
rDSTO2c719ee74b4a: Change the server's imports to absolute ones
Diff Detail
Diff Detail
- Repository
- rDSTO Storage manager
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
Comment Actions
The calling convention for the servers is python3 -m swh.storage.api.server and python3 -m swh.storage.objstorage.api.server. Doesn't that work?
Comment Actions
Nope, that make a SystemError: Parent module '' not loaded, cannot perform relative import as the module name is __main__ when launched this way.
http://stackoverflow.com/a/16637588