diff options
author | Willian Padovani Germano <wpgermano@gmail.com> | 2004-06-24 19:03:08 +0400 |
---|---|---|
committer | Willian Padovani Germano <wpgermano@gmail.com> | 2004-06-24 19:03:08 +0400 |
commit | d5b4fb5736ddc0d8ad75526b8d026c5c55221ed6 (patch) | |
tree | 533b05e3ce694182c93ab568c8da08e53046498e /source/blender/python/api2_2x/doc/Sys.py | |
parent | e306beec04fa621b423417353564ef49c43e7c95 (diff) |
Scripts:
- Added KlopUtils by Carlos Lopez and Batch Object Name Edit by Campbell Barton (thanks both!)
BPython:
- Fixed things I recently broke in Blender.sys, added Blender.sys.join(dir, file)
- doc and other minor updates
Diffstat (limited to 'source/blender/python/api2_2x/doc/Sys.py')
-rw-r--r-- | source/blender/python/api2_2x/doc/Sys.py | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/doc/Sys.py b/source/blender/python/api2_2x/doc/Sys.py index 9792d3fd278..47367d86c18 100644 --- a/source/blender/python/api2_2x/doc/Sys.py +++ b/source/blender/python/api2_2x/doc/Sys.py @@ -6,7 +6,7 @@ The Blender.sys submodule. sys === -B{New}: L{exists}, L{makename}. +B{New}: L{exists}, L{makename}, L{join}. This module provides a minimal set of helper functions and data. Its purpose is to avoid the need for the standard Python module 'os', in special 'os.path', @@ -59,6 +59,20 @@ def dirname (path): @return: the dir name """ +def join (dir, file): + """ + Join the given dir and file paths, using the proper separator for each + platform. + @type dir: string + @type file: string + @param dir: the dir name, like returned from L{dirname}. + @param file: the bare filename, like returned from L{basename}. + @rtype: string + @return: the resulting filename. + @warn: this simple function isn't intended to be a complete replacement for + the standard os.path.join() one, which handles more general cases. + """ + def splitext (path): """ Split 'path' into (root, ext), where 'ext' is a file extension. |