[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [32563] trunk/blender/release/scripts/ modules/console/intellisense.py: recent fix for relative imports broke autocomp.

Campbell Barton ideasman42 at gmail.com
Mon Oct 18 15:16:43 CEST 2010


Revision: 32563
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=32563
Author:   campbellbarton
Date:     2010-10-18 15:16:43 +0200 (Mon, 18 Oct 2010)

Log Message:
-----------
recent fix for relative imports broke autocomp.

Modified Paths:
--------------
    trunk/blender/release/scripts/modules/console/intellisense.py

Modified: trunk/blender/release/scripts/modules/console/intellisense.py
===================================================================
--- trunk/blender/release/scripts/modules/console/intellisense.py	2010-10-18 12:56:14 UTC (rev 32562)
+++ trunk/blender/release/scripts/modules/console/intellisense.py	2010-10-18 13:16:43 UTC (rev 32563)
@@ -75,10 +75,10 @@
         # unquoted word -> module or attribute completion
         word = re_unquoted_word.group(1)
         if RE_MODULE.match(line):
-            import complete_import
+            from . import complete_import
             matches = complete_import.complete(line)
         else:
-            import complete_namespace
+            from . import complete_namespace
             matches = complete_namespace.complete(word, namespace, private)
     else:
         # for now we don't have completers for strings
@@ -112,7 +112,7 @@
     'abs(number) -> number\\nReturn the absolute value of the argument.'
     """
     if line[:cursor].strip().endswith('('):
-        import complete_calltip
+        from . import complete_calltip
         matches, word, scrollback = complete_calltip.complete(line,
             cursor, namespace)
         no_calltip = False





More information about the Bf-blender-cvs mailing list