fossasia / susi_linux

Hardware for SUSI AI https://susi.ai
Apache License 2.0
1.61k stars 149 forks source link

don't use "main" when importing modules #486

Closed norbusan closed 5 years ago

norbusan commented 5 years ago

currently the top-level module name is hard-coded to "main" which is a problem when installing into system directories. Simple renaming does not work, because there are several imports hard-coded to

    import main.abc

Change this to use relative imports

    import .abc

or depending on the depths of hierarchy to

    import ..abc