-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathmodules.py
executable file
·38 lines (29 loc) · 904 Bytes
/
modules.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/env python
"""
Example that demonstrates inspecting module contents.
Also demonstrates starting two browser windows simultaneously.
"""
from __future__ import print_function
import sys, logging
from objbrowser import logging_basic_config
from objbrowser.objectbrowser import ObjectBrowser
logger = logging.getLogger(__name__)
def call_errno_test():
""" Test procedure.
"""
import errno
from six.moves import builtins
ObjectBrowser.create_browser(errno, 'errno')
ObjectBrowser.create_browser(builtins, 'builtins')
exit_code = ObjectBrowser.execute()
return exit_code
def main():
""" Main program to test stand alone
"""
logging_basic_config('DEBUG')
logger.info('Started example')
exit_code = call_errno_test()
logging.info('Done example')
sys.exit(exit_code)
if __name__ == '__main__':
main()