Message ID | 1470159883-4648-11-git-send-email-pboca@cloudbasesolutions.com |
---|---|
State | Changes Requested |
Headers | show |
diff --git a/python/ovs/util.py b/python/ovs/util.py index cb0574b..411ac99 100644 --- a/python/ovs/util.py +++ b/python/ovs/util.py @@ -29,8 +29,10 @@ def abs_file_name(dir_, file_name): Returns None if 'dir_' is None and getcwd() fails. This differs from os.path.abspath() in that it will never change the - meaning of a file name.""" - if file_name.startswith('/'): + meaning of a file name. + + On Windows an absolute path contains ':' ( i.e: C:\ ) """ + if file_name.startswith('/') or file_name.find(':') > -1: return file_name else: if dir_ is None or dir_ == "":