Tim's Lemmy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
cm0002@lemmy.world to Programmer Humor@programming.dev · 2 years ago

Specifying file paths

lemmy.ml

external-link
message-square
130
link
fedilink
  • cross-posted to:
  • [email protected]
  • [email protected]
1.46K
external-link

Specifying file paths

lemmy.ml

cm0002@lemmy.world to Programmer Humor@programming.dev · 2 years ago
message-square
130
link
fedilink
  • cross-posted to:
  • [email protected]
  • [email protected]
  • Nicht BurningTurtle@feddit.org
    link
    fedilink
    arrow-up
    105
    ·
    2 years ago

    I hate that I need to use escape characters when creating something for windows.

    • Pennomi@lemmy.world
      link
      fedilink
      English
      arrow-up
      31
      arrow-down
      2
      ·
      edit-2
      1 month ago

      deleted by creator

      • Diplomjodler@lemmy.world
        link
        fedilink
        arrow-up
        41
        ·
        2 years ago

        Pathlib is the answer.

      • unalivejoy@lemm.ee
        link
        fedilink
        English
        arrow-up
        19
        arrow-down
        1
        ·
        2 years ago

        Nobody is stopping you from using forward slashes. Python will translate the path for the current platform.

        • Lichtblitz@discuss.tchncs.de
          link
          fedilink
          arrow-up
          5
          ·
          2 years ago

          Python doesn’t have to. Windows supports both out of the box. Has been for many, many years

        • three@lemm.eedeleted by creator
          link
          fedilink
          English
          arrow-up
          2
          ·
          2 years ago

          Good to know!

    • Diplomjodler@lemmy.world
      link
      fedilink
      arrow-up
      17
      ·
      2 years ago

      Try pathlib. All your problems solved.

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1.62K users / day
  • 4.34K users / week
  • 8.19K users / month
  • 17.2K users / 6 months
  • 1 local subscriber
  • 32.7K subscribers
  • 2.23K Posts
  • 74.3K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • UI: unknown version
  • BE: 0.19.19
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org