Go to file
Campbell Barton b5b24ee521 BGE Python sys.path for the blenderplayer and blender
sys.path is the search path for python modules. This is useful so people making games can put all their scripts in a folder and be sure they will always load into the BGE.

for each blend file a scripts directory is added to the path
 /home/me/foo.blend
will look for modules in...
 /home/me/scripts/*.py 

It could also default to look for modules in the same directory as the blend file but I think this is messy.
Added a note in the tooltip about //scripts so its not such a hidden feature.

This works by storing the original sys.path, then adding the paths for the blendfile and all its libs,
when a new blendfile is loaded, the original sys.path is restored before adding the blendfiles paths again so the sys.path wont get junk in it.

One problem with this - when using linked libs the module names must be unique else it will load the wrong module for one of the controllers.

also fixed 2 bugs
- sys.path in the blenderplayer was growing by 1 for every file load in blenderplayer
- the relative path (gp_GamePythonPath), wasnt being set when loading files in the blenderlayer (as I wrongly said in the last commit).
2009-04-30 08:01:31 +00:00
bin/.blender Move Korean file from kr to ko also updated it to newer file. 2008-09-29 15:02:20 +00:00
blenderplayer Addes jpeg2000 support to cmake. 2009-03-06 15:46:13 +00:00
CMake Fix: compiling with cmake 2.4 didn't work anymore due to a 2008-09-05 21:57:34 +00:00
config [#18473] SCons build fails when linking blender when WITH_BF_OGG enabled 2009-03-31 08:13:21 +00:00
doc * add Brecht's small patch to make values to BF_QUICK and BF_QUICKDEBUG function as partial search entries. 2008-11-09 21:00:49 +00:00
extern Some Makefile changes still laying around. 2009-04-21 17:24:16 +00:00
intern BGE: slow parent was causing scaling distortion, now use correct quaternion interpolation. 2009-04-16 20:13:13 +00:00
po Some Makefile changes still laying around. 2009-04-21 17:24:16 +00:00
projectfiles Clean up for the imminent migration from SVN to GIT. 2009-03-31 22:34:34 +00:00
projectfiles_vc7 Clean up for the imminent migration from SVN to GIT. 2009-03-31 22:34:34 +00:00
projectfiles_vc9 BGE: Fix Orthographic mode and viewport scaling 2009-04-26 12:23:30 +00:00
release remove uneeded checks and testMethod from KX_ConstraintWrapper, typo in import_obj 2009-04-29 10:24:12 +00:00
source BGE Python sys.path for the blenderplayer and blender 2009-04-30 08:01:31 +00:00
tools Change scon's ordering of static libraries to resolve problem on Linux 64-bit builds. 2009-04-24 20:17:42 +00:00
CMakeLists.txt CMake files changes for FFMpeg update 2009-04-27 22:14:51 +00:00
COPYING Biiig commit! Thanks to 2-3 weeks of cvs freeze... 2004-12-27 19:28:52 +00:00
Makefile Some Makefile changes still laying around. 2009-04-21 17:24:16 +00:00
README Patch #17310: Fixing urls in main README 2008-07-12 06:18:06 +00:00
SConstruct Scons epydos changed options 2009-04-19 22:02:48 +00:00

Welcome to the fun world of open source.

For instructions on building and installing Blender, please see the file named
INSTALL.


---------------------.Blanguages and the .blender directory---------------------

The .blender directory holds various data files for Blender.
In the 2.28a release those are the .Blanguages file containing a list of
translations, the translations themselves and a default ttf font.

Blender checks for the presence of this directory in several locations:
	- the current directory
	- your home directory
	- On OSX, the blender bundle is also checked 
	- On Windows, the installation dir is checked.

If you get a 'File ".Blanguages" not found' warning, try to copy the .blender
dir to one of these locations (your home directory being recommended).



-------------------------------------Links--------------------------------------

Getting Involved:
http://www.blender.org/community/get-involved

Community:
http://www.blender.org/Community

Main blender development site:
http://www.blender.org

The Blender project homepage:
http://projects.blender.org/projects/bf-blender

Documentation:
http://www.blender.org/education-help

Bug tracker:
http://www.blender.org/development/report-a-bug

Feature request tracker:
http://wiki.blender.org/index.php/Requests