Package param :: Class normalize_path
[hide private]
[frames] | no frames]

Class normalize_path

source code


Convert a UNIX-style path to the current OS's format, typically for creating a new file or directory.

If the path is not already absolute, it will be made absolute (using the prefix parameter).

Should do the same as Python's os.path.abspath(), except using prefix rather than os.getcwd).

Nested Classes [hide private]

Inherited from parameterized.Parameterized: __metaclass__

Instance Methods [hide private]
 
__call__(self, path='', **params) source code

Inherited from parameterized.ParameterizedFunction: __reduce__, __str__, script_repr

Inherited from parameterized.Parameterized: __getstate__, __init__, __repr__, __setstate__, debug, defaults, force_new_dynamic_value, get_param_values, get_value_generator, inspect_value, message, print_param_values, set_default, set_dynamic_time_fn, set_param, state_pop, state_push, verbose, warning

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Methods [hide private]

Inherited from parameterized.ParameterizedFunction: instance

Inherited from parameterized.Parameterized: params, print_param_defaults

Static Methods [hide private]

Inherited from parameterized.ParameterizedFunction: __new__

Class Variables [hide private]
  prefix = String(default= os.getcwd(), pickle_default_value= Fa...
Prepended to the specified path, if that path is not absolute.
  name = <param.parameterized.String object at 0xa2ffe2c>
String identifier for this object.

Inherited from parameterized.Parameterized: print_level

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__call__(self, path='', **params)
(Call operator)

source code 
Overrides: parameterized.ParameterizedFunction.__call__

Class Variable Details [hide private]

prefix

Prepended to the specified path, if that path is not absolute.
Value:
String(default= os.getcwd(), pickle_default_value= False, doc= """
        Prepended to the specified path, if that path is not
        absolute.""")