mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06: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,22 +20,22 @@
|
||||
|
||||
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="ipapython",
|
||||
doc=__doc__,
|
||||
package_dir={'ipapython': ''},
|
||||
packages=[
|
||||
"ipapython",
|
||||
"ipapython.dnssec",
|
||||
"ipapython.secrets",
|
||||
"ipapython.install"
|
||||
],
|
||||
)
|
||||
ipasetup(
|
||||
name="ipapython",
|
||||
doc=__doc__,
|
||||
package_dir={'ipapython': ''},
|
||||
packages=[
|
||||
"ipapython",
|
||||
"ipapython.dnssec",
|
||||
"ipapython.secrets",
|
||||
"ipapython.install"
|
||||
],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user