concept os.path in category .net

appears as: os.path
IronPython in Action

This is an excerpt from Manning's book IronPython in Action.

Table 2.3. Useful standard library modules

Module

Purpose

sys

Provides system-specific settings like the path, executable name, and command-line arguments.

os

Provides functions for interacting with the operating system, including launching processes.

os.path

Provides functions for working with files, directories, and paths.

re

Regular expression library.

math

Floating point math routines.

random

Generates random numbers and for making random selections.

time

For working with times and formatting date strings.

unittest

An extensible unit test framework.

optparse

A library for parsing command-line arguments.

cPickle

Provides object persistence. Serialize Python or .NET objects as text or binary.

decimal

Provides support for decimal floating point arithmetic.

cStringIO

Implements a file-like class (StringIO) that reads and writes a string buffer.

collections

High-performance container datatype, the deque.

itertools

A number of iterator building blocks.

types

Provides access to type objects for components such as classes, functions, and methods.

The Python module os.path provides similar functionality. os.path.split takes a path and splits it into the following two parts: