Skip to content

Commit 78751e0

Browse files
fileutils: bring back global module vars
0c646b7 removed several module level variables, although they are needed by downstream tools like scancode. Bring them back in their py3 only variants Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
1 parent 76a03d9 commit 78751e0

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/commoncode/fileutils.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,15 @@ def logger_debug(*args):
6262
def logger_debug(*args):
6363
return logger.debug(' '.join(isinstance(a, str) and a or repr(a) for a in args))
6464

65+
PATH_TYPE = compat.unicode
66+
POSIX_PATH_SEP = '/'
67+
WIN_PATH_SEP = '\\'
68+
EMPTY_STRING = ''
69+
DOT = '.'
70+
PATH_SEP = compat.unicode(os.sep)
71+
PATH_ENV_VAR = 'PATH'
72+
PATH_ENV_SEP = compat.unicode(os.pathsep)
73+
6574
"""
6675
File, paths and directory utility functions.
6776
"""

0 commit comments

Comments
 (0)