Skip to content

Consider allowing custom working directories for shortcuts #20

Open
@takluyver

Description

@takluyver

In favour:

  • Some people write code that assumes it's launched from the directory where the script is.
  • Debugging may be tricky, because a script that fails when launched from a shortcut might work when launched from the command prompt.

Against:

  • Applications shouldn't assume what their working directory is on launch.
  • Application developers can easily set the working directory in Python (os.chdir(os.path.dirname(sys.argv[0])) switches to the folder containing the script)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions