Skip to content

Commit

Permalink
Should use os.pathsep to split paths
Browse files Browse the repository at this point in the history
  • Loading branch information
nickoala authored and BoboTiG committed Oct 21, 2018
1 parent cedf21a commit 9dcd848
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/watchdog/watchmedo.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
CONFIG_KEY_PYTHON_PATH = 'python-path'


def path_split(pathname_spec, separator=os.path.sep):
def path_split(pathname_spec, separator=os.pathsep):
"""
Splits a pathname specification separated by an OS-dependent separator.
Expand Down Expand Up @@ -153,7 +153,7 @@ def schedule_tricks(observer, tricks, pathname, recursive):
help='perform tricks from given file')
@arg('--python-path',
default='.',
help='paths separated by %s to add to the python path' % os.path.sep)
help='paths separated by %s to add to the python path' % os.pathsep)
@arg('--interval',
'--timeout',
dest='timeout',
Expand Down Expand Up @@ -215,7 +215,7 @@ def tricks_from(args):
help='Dotted paths for all the tricks you want to generate')
@arg('--python-path',
default='.',
help='paths separated by %s to add to the python path' % os.path.sep)
help='paths separated by %s to add to the python path' % os.pathsep)
@arg('--append-to-file',
default=None,
help='appends the generated tricks YAML to a file; \
Expand Down

0 comments on commit 9dcd848

Please sign in to comment.