From 97e544dd0aa5e29cee9e3f000a0af21c2943526f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 29 Apr 2017 13:51:01 +0530 Subject: [PATCH] Use native path as example --- src/calibre/utils/config.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/calibre/utils/config.py b/src/calibre/utils/config.py index e921b73e19..de759bcb08 100644 --- a/src/calibre/utils/config.py +++ b/src/calibre/utils/config.py @@ -11,7 +11,7 @@ from copy import deepcopy import optparse from calibre.constants import (config_dir, CONFIG_DIR_MODE, __appname__, - get_version, __author__, DEBUG) + get_version, __author__, DEBUG, iswindows) from calibre.utils.lock import ExclusiveFile from calibre.utils.config_base import (make_config_dir, Option, OptionValues, OptionSet, ConfigInterface, Config, prefs, StringConfig, ConfigProxy, @@ -93,7 +93,8 @@ class OptionParser(optparse.OptionParser): if epilog is None: epilog = _('Created by ')+colored(__author__, fg='cyan') usage += '\n\n'+_('''Whenever you pass arguments to %prog that have spaces in them, ''' - '''enclose the arguments in quotation marks. For example "C:\\some path with spaces"''')+'\n' + '''enclose the arguments in quotation marks. For example: "{}"''').format( + "C:\\some path with spaces" if iswindows else '/some path/with spaces') +'\n' if version is None: version = '%%prog (%s %s)'%(__appname__, get_version()) optparse.OptionParser.__init__(self, usage=usage, version=version, epilog=epilog,