Package implementing various functions/classes needed everywhere within eric3.
Imported modules
|
|
import os
import re
import string
|
Functions
|
|
|
|
decode
|
decode ( text )
Function to decode a text.
Arguments
- text
- text to decode
Returns
decoded text
|
|
direntries
|
direntries ( path, filesonly=0 )
Function returning a list of all files and directories.
Arguments
- path
- root of the tree to check
- filesonly
- flag indicating that only files are wanted
Returns
list of all files and directories in the tree rooted
at path. The names are expanded to start with path.
|
|
encode
|
encode ( text, orig_coding )
Function to encode a text.
Arguments
- text
- text to encode
- orig_coding
- type of the original coding
Returns
encoded text
|
|
get_coding
|
get_coding ( text )
Function to get the coding of a text.
Arguments
- text
- text to inspect
Returns
coding string
|
|
isinpath
|
isinpath ( file )
Function to check for a file.
Returns
flag to indicate, if the executable file is accessible
via the searchpath defined by the PATH environment variable.
|
|
normabsjoinpath
|
normabsjoinpath ( a, *p )
Function returning a normalized, absolute path of the joined parts passed into it.
|
|
normabspath
|
normabspath ( path )
Function returning a normalized, absolute path.
|
|
normcasepath
|
normcasepath ( path )
Function returning a path, that is normalized with respect to its case and references.
|
|
normjoinpath
|
normjoinpath ( a, *p )
Function returning a normalized path of the joined parts passed into it.
|
|
samepath
|
samepath ( f1, f2 )
Function to compare two paths.
Returns
flag indicating whether the two paths represent the
same path on disk.
|