Index: source/blender/python/api2_2x/Blender.c
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/python/api2_2x/Blender.c,v
retrieving revision 1.57
diff -u -p -r1.57 Blender.c
--- source/blender/python/api2_2x/Blender.c	22 Mar 2005 04:28:36 -0000	1.57
+++ source/blender/python/api2_2x/Blender.c	4 Apr 2005 23:05:41 -0000
@@ -272,6 +272,114 @@ static PyObject *Blender_Get( PyObject *
 		}
 		if (!ret) ret = EXPP_incr_ret(Py_None);
 	}
+	
+	/* USER PREFS */
+	/* yfexportdir */
+	else if( StringEqual( str, "yfexportdir" ) ) {
+		if (U.yfexportdir[0] != '\0') {
+			char yfexportdir[FILE_MAXDIR];
+
+			BLI_strncpy(yfexportdir, U.yfexportdir, FILE_MAXDIR);
+			BLI_convertstringcode(yfexportdir, G.sce, 0);
+
+			if( BLI_exists( yfexportdir ) )
+				ret = PyString_FromString( yfexportdir );
+		}
+		if (!ret) ret = EXPP_incr_ret(Py_None);
+	}
+	/* fontdir */
+	else if( StringEqual( str, "fontdir" ) ) {
+		if (U.fontdir[0] != '\0') {
+			char fontdir[FILE_MAXDIR];
+
+			BLI_strncpy(fontdir, U.fontdir, FILE_MAXDIR);
+			BLI_convertstringcode(fontdir, G.sce, 0);
+
+			if( BLI_exists( fontdir ) )
+				ret = PyString_FromString( fontdir );
+		}
+		if (!ret) ret = EXPP_incr_ret(Py_None);
+	}	
+	/* textudir */
+	else if( StringEqual( str, "textudir" ) ) {
+		if (U.textudir[0] != '\0') {
+			char textudir[FILE_MAXDIR];
+
+			BLI_strncpy(textudir, U.textudir, FILE_MAXDIR);
+			BLI_convertstringcode(textudir, G.sce, 0);
+
+			if( BLI_exists( textudir ) )
+				ret = PyString_FromString( textudir );
+		}
+		if (!ret) ret = EXPP_incr_ret(Py_None);
+	}		
+	/* plugtexdir */
+	else if( StringEqual( str, "plugtexdir" ) ) {
+		if (U.plugtexdir[0] != '\0') {
+			char plugtexdir[FILE_MAXDIR];
+
+			BLI_strncpy(plugtexdir, U.plugtexdir, FILE_MAXDIR);
+			BLI_convertstringcode(plugtexdir, G.sce, 0);
+
+			if( BLI_exists( plugtexdir ) )
+				ret = PyString_FromString( plugtexdir );
+		}
+		if (!ret) ret = EXPP_incr_ret(Py_None);
+	}			
+	/* plugseqdir */
+	else if( StringEqual( str, "plugseqdir" ) ) {
+		if (U.plugseqdir[0] != '\0') {
+			char plugseqdir[FILE_MAXDIR];
+
+			BLI_strncpy(plugseqdir, U.plugseqdir, FILE_MAXDIR);
+			BLI_convertstringcode(plugseqdir, G.sce, 0);
+
+			if( BLI_exists( plugseqdir ) )
+				ret = PyString_FromString( plugseqdir );
+		}
+		if (!ret) ret = EXPP_incr_ret(Py_None);
+	}			
+	/* renderdir */
+	else if( StringEqual( str, "renderdir" ) ) {
+		if (U.renderdir[0] != '\0') {
+			char renderdir[FILE_MAXDIR];
+
+			BLI_strncpy(renderdir, U.renderdir, FILE_MAXDIR);
+			BLI_convertstringcode(renderdir, G.sce, 0);
+
+			if( BLI_exists( renderdir ) )
+				ret = PyString_FromString( renderdir );
+		}
+		if (!ret) ret = EXPP_incr_ret(Py_None);
+	}		
+	/* sounddir */
+	else if( StringEqual( str, "sounddir" ) ) {
+		if (U.sounddir[0] != '\0') {
+			char sounddir[FILE_MAXDIR];
+
+			BLI_strncpy(sounddir, U.sounddir, FILE_MAXDIR);
+			BLI_convertstringcode(sounddir, G.sce, 0);
+
+			if( BLI_exists( sounddir ) )
+				ret = PyString_FromString( sounddir );
+		}
+		if (!ret) ret = EXPP_incr_ret(Py_None);
+	}		
+	/* tempdir */
+	else if( StringEqual( str, "tempdir" ) ) {
+		if (U.tempdir[0] != '\0') {
+			char tempdir[FILE_MAXDIR];
+
+			BLI_strncpy(tempdir, U.tempdir, FILE_MAXDIR);
+			BLI_convertstringcode(tempdir, G.sce, 0);
+
+			if( BLI_exists( tempdir ) )
+				ret = PyString_FromString( tempdir );
+		}
+		if (!ret) ret = EXPP_incr_ret(Py_None);
+	}	
+	
+	
 	/* According to the old file (opy_blender.c), the following if
 	   statement is a quick hack and needs some clean up. */
 	else if( StringEqual( str, "vrmloptions" ) ) {
Index: source/blender/python/api2_2x/doc/Blender.py
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/python/api2_2x/doc/Blender.py,v
retrieving revision 1.33
diff -u -p -r1.33 Blender.py
--- source/blender/python/api2_2x/doc/Blender.py	19 Mar 2005 06:24:55 -0000	1.33
+++ source/blender/python/api2_2x/doc/Blender.py	4 Apr 2005 23:05:41 -0000
@@ -46,6 +46,8 @@ def Set (request, data):
 def Get (request):
   """
   Retrieve settings from Blender.
+  Directories set in the user prefs panel will return None if they are not set
+  or the path is does not exist.
   @type request: string
   @param request: The setting data to be returned:
       - 'curframe': the current animation frame.
@@ -64,8 +66,23 @@ def Get (request):
       - 'scriptsdir': the path to the main dir where scripts are stored
             (can be None, if not found).
       - 'uscriptsdir': the path to the user defined dir for scripts, see
-            the paths tab in the User Preferences window in Blender
-            (can be None, if not found).
+            the paths tab in the User Preferences window in Blender.
+      - 'yfexportdir': the path to the user defined dir for yafray export,
+            see the paths tab in the User Preferences window in Blender.
+      - 'fontdir': the path to the user defined dir for fonts, see
+            the paths tab in the User Preferences window in Blender.
+      - 'textudir': the path to the user defined dir for textures, see
+            the paths tab in the User Preferences window in Blender.		
+      - 'plugtexdir': the path to the user defined dir for texture plugins, see
+            the paths tab in the User Preferences window in Blender.
+      - 'plugseqdir': the path to the user defined dir for sequence plugins, see
+            the paths tab in the User Preferences window in Blender.
+      - 'renderdir': the path to the user defined dir for render output, see
+            the paths tab in the User Preferences window in Blender.
+      - 'sounddir': the path to the user defined dir for sound files, see
+            the paths tab in the User Preferences window in Blender.
+      - 'tempdir': the path to the user defined dir for storage of blender temp files, see
+            the paths tab in the User Preferences window in Blender.
       - 'version' : the Blender version number.
   @return: The requested data.
   """
