[Bf-python] More Proposed API changes.

Martin Poirier theeth at yahoo.com
Mon Mar 12 21:16:11 CET 2007


--- Toni Alatalo <antont at kyperjokki.fi> wrote:

> someone 
> wanting to use a py script in Blender that has the
> name 'bpy' - without 
> explicit import he can not do 'import bpy as
> bpython' or whatever could 
> be used otherwise to avoid it.

You could always create a separate reference to the
module (at the head of the script):

bpython = bpy

Then, you could rebind "bpy" without fear of loosing
access to the module.

Martin


 
____________________________________________________________________________________
Food fight? Enjoy some healthy debate 
in the Yahoo! Answers Food & Drink Q&A.
http://answers.yahoo.com/dir/?link=list&sid=396545367



More information about the Bf-python mailing list