Skip to content

fix up paths description for windows #10

@yarikoptic

Description

@yarikoptic

Book in _sources/Files/FindingaFileonyourDisk.rst (master branch) says

Note that Python pathnames follow the UNIX conventions (Mac OS is a UNIX variant), rather than the Windows file pathnames that use : and \\. The Python interpreter will translate to Windows pathnames when running on a Windows machine; you should be able to share your Python program between a Windows machine and a MAC without having to rewrite the file open commands.

which is not exactly correct:

  • windows itself can understand both / and \
  • requires DRIVE: prefix for full paths

worthwhile to point to pathlib module shipped with python3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions