Hi Enrico,

I checked in the cleanup patch for TestCommanPython.py.
As for the 'import' command, can you rework the patch to rely on os.sep instead 
of '/'
as the pathname components separator?

Thanks.

On Oct 12, 2011, at 3:07 AM, Enrico Granata wrote:

> Hi all,
> 
> the proposed patch provides an implementation of a new 'import' command for 
> LLDB, based upon Python commands. an example usage is:
> (lldb) script import importcmd
> (lldb) command script add -f importcmd.pyimport_cmd import
> (lldb) import /Users/user/Documents/demo1.py
> (lldb) script demo1.test_function(1)
> there is an included test case that checks for correctness of this new 
> command by importing some Python script files and using the resulting modules
> 
> plus, this fixes a minor issue where the custom Python commands defined for 
> the functionalities/command_python/ test case would not be cleaned up if the 
> test case itself failed
> 
> Any feedback on this is most welcome.
> 
> Thanks,
> - Enrico Granata
> <importcmd_patch.diff>
> _______________________________________________
> lldb-dev mailing list
> [email protected]
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev

_______________________________________________
lldb-dev mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev

Reply via email to