X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2F__init__.py;h=7b7fc41eb32fc2a738df47275b81d836fe005b44;hb=d20644a48d03667bb25dc583517de06e94606c64;hp=a632df0fd45217aebf0249d2929193b13c02e654;hpb=166443b265a563312a0f8097c7e1b7dd2c6dc12d;p=plcapi.git diff --git a/PLC/__init__.py b/PLC/__init__.py index a632df0..7b7fc41 100644 --- a/PLC/__init__.py +++ b/PLC/__init__.py @@ -1,52 +1,2 @@ -all = """ -API -AddressTypes -Addresses -Auth -Boot -BootStates -ConfFiles -Config -Debug -EventObjects -Events -Faults -Filter -GPG -IlinkTypes -Ilinks -InitScripts -InterfaceSettingTypes -InterfaceSettings -Interfaces -KeyTypes -Keys -Messages -Method -NetworkMethods -NetworkTypes -NodeGroups -NodeTagTypes -NodeTags -Nodes -PCUProtocolTypes -PCUTypes -PCUs -POD -Parameter -Peers -Persons -PostgreSQL -PyCurl -Roles -Sessions -Shell -Sites -SliceAttributeTypes -SliceAttributes -SliceInstantiations -Slices -Table -Test -sendmail -""".split() +import os +all = [i[:-3] for i in os.listdir(os.path.dirname(__file__)) if i.endswith(".py") and not i.startswith(".")]