@@ -497,23 +497,24 @@ def RegisterShellInfo(searchPaths):
497497of the registry.
498498"""
499499
500- examples = """\
500+ # Using raw string so that all paths meant to be copied read correctly inline and when printed
501+ examples = r"""
501502Examples:
502- "regsetup c:\\ wierd\\ spot\\ 1 c:\\ wierd\\ spot\ \ 2"
503+ "regsetup c:\wierd\spot\1 c:\wierd\spot\2"
503504Attempts to setup the core Python. Looks in some standard places,
504505as well as the 2 wierd spots to locate the core Python files (eg, Python.exe,
505506pythonXX.dll, the standard library and Win32 Extensions.
506507
507508"regsetup -a myappname . .\subdir"
508- Registers a new Pythonpath entry named myappname, with "C:\\ I \\ AM \ \ HERE" and
509- "C:\\ I \\ AM \ \ HERE\subdir" added to the path (ie, all args are converted to
509+ Registers a new Pythonpath entry named myappname, with "C:\I\AM \HERE" and
510+ "C:\I\AM \HERE\subdir" added to the path (ie, all args are converted to
510511absolute paths)
511512
512- "regsetup -c c:\\ my\\ python\ \ files"
513- Unconditionally add "c:\\ my\\ python\ \ files" to the 'core' Python path.
513+ "regsetup -c c:\my\python\files"
514+ Unconditionally add "c:\my\python\files" to the 'core' Python path.
514515
515- "regsetup -m some.pyd \\ windows\ \ system"
516- Register the module some.pyd in \\ windows\ \ system as a registered
516+ "regsetup -m some.pyd \windows\system"
517+ Register the module some.pyd in \windows\system as a registered
517518module. This will allow some.pyd to be imported, even though the
518519windows system directory is not (usually!) on the Python Path.
519520
0 commit comments