explorlib methods

explorlib.explore(argv)

Run explore

Use ipy.exe and this file for debugging unusual errors Need ~1500 lines to see all listed output pipe to file >> output.txt is better

params:

help: [-h, -?, /?, /h, help][op] :

None [opt] - look at current IronPython imports status output: current contents of libimports manually updated:

  • Have Passed: Have been loaded as standalone in win8.1/win7 32/64
  • Direect: via import <libname>
  • Indirect: loaded as a results of “Direct” imports
  • Imported: list of current import libs by running this module
  • NotTested: Libraries and sub-Libraries not yet tested
  • New Added: If uncommented in NotTested and recomiled, run will have output
  • list of current index values in NotTested list to remove on success
  • Calc’d Indirect: Passed - Direct

current contents of libimports manually updated -p [opt] - Have Passed: Have been loaded as standalone in win8.1/win7 32/64 -d [opt] - Direect: via import <libname> -i [opt] - Indirect: loaded as a results of “Direct” imports -n [opt] - NotTested: Libraries and sub-Libraries not yet tested -v [opt] - run ipyver to see where assemblies and modules are sourced.

explorlib.getIndirect()

Difference between hard coded maunlly updated “Passed” list and “Direct” list not dynamically updated - that is why the output is formated. Send output >> to file.txt copy and past into libimports then re-compile re-run until ok.

explorver methods

Used by autodoc_mock_imports.

libimport methods

libimport.Passed()

ALL THAT PASSED

libimport.Direct()

passed direct (imported on import)

libimport.Indirect()

last manually update Indirect indirectly imported from a “direct” import depedancy

libimport.NotTested()

NOT TESTED The following least common ancestor libs may have buggy behavior that will not load in an environment without IronPython/Python present

ipyver methods

class ipyver.ReferenceStatus(ref=None)

Check clr Reference Status - ipy Only

:use:refStat = ReferenceStatus().RefStatus()

Param:reference name [opt][str] - check against loaded
class and instance method returns:
  • cls.RefStatus() if pararm: reference name
  • cls.RefStatusIPMS() for any instance
Returns:
  • status [dict] - None on fail/err
  • keys:
    -‘sys’ - System and ‘ipy’ IronPython
    or no key for reference name return:
  • subkeys:
    • ’ver’ [str]
    • ’isLocal’ [bool]
    • ’isloaded’ [bool]
    • ’path’ [str]
    • ’name’ [str]

Example:

try:
    import inspect
except ImportError as ex:
    pass

rsp = ReferenceStatus('inspect').RefStatus()
for k, v in rsp.iteritems():
    print('inspect {}:{}'.format(k,v))

also 

rsp = ReferenceStatus().RefStatusIPMS()
for k, v in rsp.iteritems():
    print('IPMS {}:{}'.format(k,v))