Revision 4f5277e7 lib/hypervisor/hv_base.py
b/lib/hypervisor/hv_base.py | ||
---|---|---|
49 | 49 |
# _CHECK values |
50 | 50 |
|
51 | 51 |
# must be afile |
52 |
_FILE_CHECK = (os.path.isabs, "must be an absolute path",
|
|
52 |
_FILE_CHECK = (utils.IsNormAbsPath, "must be an absolute normal path",
|
|
53 | 53 |
os.path.isfile, "not found or not a file") |
54 | 54 |
|
55 | 55 |
# must be a directory |
56 |
_DIR_CHECK = (os.path.isabs, "must be an absolute path",
|
|
56 |
_DIR_CHECK = (utils.IsNormAbsPath, "must be an absolute normal path",
|
|
57 | 57 |
os.path.isdir, "not found or not a directory") |
58 | 58 |
|
59 | 59 |
# nice wrappers for users |
Also available in: Unified diff