Module helper
source code
pysourceinfo.helper - miscellaneous utilities - details see manuals
The provided interfaces are foreseen for the bottom layer of the software stack,
thus provide basic handling only. This includes special cases of the file system
parameters. For more advanced file system path processing refer to filesysobjects.
Version:
0.1.21
Author:
Arno-Can Uestuensoez
Copyright:
Copyright (C) 2010-2017 Arno-Can Uestuensoez @Ingenieurbuero
Arno-Can Uestuensoez
License:
Artistic-License-2.0 + Forced-Fairplay-Constraints
|
get_oid_filepathname(oid,
spath=None)
File path name for OID. |
source code
|
|
|
|
|
getpythonpath(pname,
plist=None,
**kw)
Matches prefix from sys.path.
Foreseen to be used for canonical base references in unit tests.
This enables in particular for generic tests of file system positions
where originally absolute pathnames were required. |
source code
|
|
|
getpythonpath_rel(pname,
plist=None,
**kw)
Verifies an absolute or relative path name to be
reachable as a relative path to one item of the search
list plist. |
source code
|
|
|
|
|
|
|
|
|
matchpath(path,
pathlist=None,
pmatch=1)
Match a file pathname of pathname on a pathlist. |
source code
|
|
|
BYTECODE_SUFFIXES = [ ' b'.pyc' ' ]
|
|
CUT_INIT_PY = re.compile('__init__.py')
|
|
C_BUILTIN = 6
|
|
C_EXTENSION = 3
|
|
DEBUG_BYTECODE_SUFFIXES = [ ' b'.pyc' ' ]
|
|
EXTENSION_SUFFIXES = [ ' b'.cpython-38m-x86_64-linux-gnu.so' ' , ' ...
|
|
ISSTR = ( <class 'str'>, <class 'bytes'>)
|
|
OID_LIST = 3
|
|
OID_STR = 1
|
|
OID_TUPLE = 2
|
|
OPTIMIZED_BYTECODE_SUFFIXES = [ ' b'.pyc' ' ]
|
|
PKG_DIRECTORY = 5
|
|
PYV35Plus = True
|
|
PY_COMPILED = 2
|
|
PY_FROZEN = 7
|
|
PY_SOURCE = 1
|
|
P_FIRST = 1
|
|
P_IGNORE0 = 16
|
|
P_LAST = 2
|
|
P_LONGEST = 8
|
|
P_SHORTEST = 4
|
|
SOURCE_SUFFIXES = [ ' b'.py' ' ]
|
|
SourceInfoError = <class 'sourceinfo.SourceInfoError'>
|
|
__cached__ = ' b'/local/hd1/home1/data/acue/rd/p-open-deploy/so ...
|
|
__loader__ = <_frozen_importlib_external.SourceFileLoader obje...
|
|
__package__ = ' b'sourceinfo' '
|
|
__spec__ = ModuleSpec(name='sourceinfo.helper', loader=<_froze...
|
|
__uuid__ = ' b'9de52399-7752-4633-9fdc-66c87a9200b8' '
|
|
presolve = 1
|