parameters: ()
return_statement: return os.path.relpath( path )
docstring: Returns the (relative) path to the Boost source-directory this file is located in (if any).
docstring_summary: Returns the (relative) path to the Boost source-directory this file is located in (if any).
docstring_tokens: Returns the ( relative ) path to the Boost source - directory this file is located in ( if any ) .
function: def current_boost_dir():
      """Returns the (relative) path to the Boost source-directory this file is located in (if any)."""
      # Path to directory containing this script.
      path = os.path.dirname( os.path.realpath(__file__) )
      # Making sure it is located in "${boost-dir}/libs/mpl/preprocessed".
      for directory in reversed( ["libs", "mpl", "preprocessed"] ):
          (head, tail) = os.path.split(path)
          if tail == directory:
              path = head
          else:
              return None
      return os.path.relpath( path )
function_tokens: def current_boost_dir ( ) : # Path to directory containing this script. path = os . path . dirname ( os . path . realpath ( __file__ ) ) # Making sure it is located in "${boost-dir}/libs/mpl/preprocessed". for directory in reversed ( [ "libs" , "mpl" , "preprocessed" ] ) : ( head , tail ) = os . path . split ( path ) if tail == directory : path = head else : return None return os . path . relpath ( path )