# this gives you the dir that the current blend file is in (but not
the filename of the blend file)
path = bge.logic.expandPath("//")

On Fri, Feb 24, 2012 at 8:36 PM, Damien Touraine
<damien.toura...@limsi.fr> wrote:
> Hi,
>
> I would like to get the name and the path of the currently loaded file
> inside the Game Engine. I tried to import bpy and get bpy.data.filepath,
> but I can't even import bpy : "No module named bpy".
>
> Regards
>     Damien Touraine
> PS : I user Blender SVN revision 42510
> _______________________________________________
> Bf-committers mailing list
> Bf-committers@blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers



-- 
- Campbell
_______________________________________________
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers

Reply via email to