Browse Source

fix for new import syntax

Darren Ranalli 21 years ago
parent
commit
d538b36c30
1 changed files with 1 additions and 1 deletions
  1. 1 1
      direct/src/directscripts/python-mode.el

+ 1 - 1
direct/src/directscripts/python-mode.el

@@ -3360,7 +3360,7 @@ comint believe the user typed this string so that
   (interactive)
   (interactive)
   (let ((curbuf (current-buffer))
   (let ((curbuf (current-buffer))
 	(procbuf (process-buffer proc))
 	(procbuf (process-buffer proc))
-	(cmd (format "import Finder; Finder.rebindClass(__builtins__.globals(), r'%s')\n" filename))
+	(cmd (format "from direct.showbase import Finder; Finder.rebindClass(__builtins__.globals(), r'%s')\n" filename))
 	)
 	)
 
 
 	  ;; Goto the python buffer
 	  ;; Goto the python buffer