mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-08-12 05:55:08 -05:00
Add __name__ == __main__ guards to setup.pys
Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-By: Petr Spacek <pspacek@redhat.com> Reviewed-By: Martin Basti <mbasti@redhat.com> Reviewed-By: Lenka Doudova <ldoudova@redhat.com>
This commit is contained in:
committed by
Martin Basti
parent
9b0b970733
commit
91920e7cb4
+20
-20
@@ -20,26 +20,26 @@
|
||||
|
||||
FreeIPA is a server for identity, policy, and audit.
|
||||
"""
|
||||
import os
|
||||
from os.path import abspath, dirname
|
||||
import sys
|
||||
|
||||
# include ../ for ipasetup.py
|
||||
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||
if __name__ == '__main__':
|
||||
# include ../ for ipasetup.py
|
||||
sys.path.append(dirname(dirname(abspath(__file__))))
|
||||
from ipasetup import ipasetup # noqa: E402
|
||||
|
||||
from ipasetup import ipasetup # noqa: E402
|
||||
|
||||
ipasetup(
|
||||
name="ipaclient",
|
||||
doc=__doc__,
|
||||
scripts=['../ipa'],
|
||||
package_dir={'ipaclient': ''},
|
||||
packages=[
|
||||
"ipaclient",
|
||||
"ipaclient.plugins",
|
||||
"ipaclient.remote_plugins",
|
||||
"ipaclient.remote_plugins.2_49",
|
||||
"ipaclient.remote_plugins.2_114",
|
||||
"ipaclient.remote_plugins.2_156",
|
||||
"ipaclient.remote_plugins.2_164",
|
||||
],
|
||||
)
|
||||
ipasetup(
|
||||
name="ipaclient",
|
||||
doc=__doc__,
|
||||
scripts=['../ipa'],
|
||||
package_dir={'ipaclient': ''},
|
||||
packages=[
|
||||
"ipaclient",
|
||||
"ipaclient.plugins",
|
||||
"ipaclient.remote_plugins",
|
||||
"ipaclient.remote_plugins.2_49",
|
||||
"ipaclient.remote_plugins.2_114",
|
||||
"ipaclient.remote_plugins.2_156",
|
||||
"ipaclient.remote_plugins.2_164",
|
||||
],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user