Python Forum
Question about if with () or without () / pathlib
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question about if with () or without () / pathlib
#4
Hi Community,

after some tests I found my "error". I was working with "~" in the paths. It seems that the libraries os and pathlib can not handle "~". When I work with absolute path my code is working as expected / needed.

Regards

--Christian
Reply


Messages In This Thread
RE: Question about if with () or without () / pathlib - by Tecuma - Apr-02-2020, 10:02 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Pathlib import not working chriswrcg 9 3,872 May-29-2022, 07:37 PM
Last Post: snippsat
  deleting an empty Dir, using pathlib.Path tester_V 9 5,972 Jul-01-2021, 01:53 PM
Last Post: Gribouillis
  Trying to pathlib instead of os.path tester_V 4 2,546 Jun-22-2021, 04:15 AM
Last Post: tester_V
  pathlib destpath.exists() true even file does not exist NaN 9 4,762 Dec-01-2020, 12:43 PM
Last Post: NaN
  pathlib hanging bluefrog 2 3,177 Sep-25-2018, 12:59 PM
Last Post: volcano63
  pathlib: resolving a path that does not exist Skaperen 6 5,606 Sep-08-2018, 12:25 AM
Last Post: Skaperen
  makin hardlinks with pathlib.Path Skaperen 2 5,298 Sep-06-2018, 07:53 AM
Last Post: scidam
  Need help using pathlib to read text file into dictionary gwilli3 4 4,254 Aug-13-2018, 06:21 PM
Last Post: gwilli3
  How does pathlib.Path.rename work? wavic 7 17,040 Aug-02-2018, 10:58 AM
Last Post: wavic
  pathlib:file in a directory Skaperen 1 2,796 Apr-01-2018, 03:26 PM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020