amccarth created this revision.
amccarth added a reviewer: zturner.
amccarth added a subscriber: lldb-commits.
In Python 3.5, import looks only in the official packages directory unless you
tell it otherwise. I tested with Python 2.7 as well.
http://reviews.llvm.org/D16431
Files:
packages/Python/lldbsuite/test/functionalities/command_script/import/thepackage/__init__.py
Index:
packages/Python/lldbsuite/test/functionalities/command_script/import/thepackage/__init__.py
===================================================================
---
packages/Python/lldbsuite/test/functionalities/command_script/import/thepackage/__init__.py
+++
packages/Python/lldbsuite/test/functionalities/command_script/import/thepackage/__init__.py
@@ -1,5 +1,7 @@
-import TPunitA
-import TPunitB
+from __future__ import absolute_import
+
+from . import TPunitA
+from . import TPunitB
def __lldb_init_module(debugger,*args):
debugger.HandleCommand("command script add -f
thepackage.TPunitA.command TPcommandA")
Index: packages/Python/lldbsuite/test/functionalities/command_script/import/thepackage/__init__.py
===================================================================
--- packages/Python/lldbsuite/test/functionalities/command_script/import/thepackage/__init__.py
+++ packages/Python/lldbsuite/test/functionalities/command_script/import/thepackage/__init__.py
@@ -1,5 +1,7 @@
-import TPunitA
-import TPunitB
+from __future__ import absolute_import
+
+from . import TPunitA
+from . import TPunitB
def __lldb_init_module(debugger,*args):
debugger.HandleCommand("command script add -f thepackage.TPunitA.command TPcommandA")
_______________________________________________
lldb-commits mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits