File tree Expand file tree Collapse file tree 1 file changed +14
-10
lines changed Expand file tree Collapse file tree 1 file changed +14
-10
lines changed Original file line number Diff line number Diff line change 52
52
}
53
53
54
54
55
- item = MDIMPORT [sys .argv [1 ]]
55
+ def main ():
56
+ item = MDIMPORT [sys .argv [1 ]]
56
57
57
- metad = None
58
+ metad = None
58
59
59
- if item ["type" ] == "local" :
60
- metad = MetaDataFile (sys .argv [1 ], ONTS .values (), item ["file" ])
61
- elif item ["type" ] == "external" :
62
- metad = MetaDataExtern (sys .argv [1 ], ONTS .values (),
63
- item ["url" ], "/opt/local/bin/xmlsec1" , item ["cert" ])
60
+ if item ["type" ] == "local" :
61
+ metad = MetaDataFile (sys .argv [1 ], ONTS .values (), item ["file" ])
62
+ elif item ["type" ] == "external" :
63
+ metad = MetaDataExtern (sys .argv [1 ], ONTS .values (),
64
+ item ["url" ], "/opt/local/bin/xmlsec1" , item ["cert" ])
64
65
65
- if metad :
66
- metad .load ()
67
- print metad .dumps ()
66
+ if metad :
67
+ metad .load ()
68
+ print metad .dumps ()
68
69
70
+
71
+ if __name__ == '__main__' :
72
+ main ()
You can’t perform that action at this time.
0 commit comments