The safety mechanism prevents the installation-code under `if __name__` to run when importing to check for the `_prep_function`. when the import for `_prep_function` check is executed it imports with a bogus `__name__` override. This is to protect anything under if `__name__` from running just to be able to import and run `_prep_function()`. After that is done and the actual installation begins, it imports with a proper `__name__`, The namespace is `filename` minus the `.extension` *(.py)*, normally imports of modules with dashes (`-`) in the name is prohibited, but archintall's import mechanism supports this as it's a string-import via `importlib`. So modified to `if __name__ == 'kde-wayland'` and that worked great : ) |
||
|---|---|---|
| .. | ||
| applications | ||
| 52-54-00-12-34-56.py | ||
| awesome.py | ||
| desktop.py | ||
| gnome.py | ||
| kde-wayland.py | ||
| kde.py | ||
| xorg.py | ||