Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
File Path not recognised
#2
There is a number of special characters that in pair with \ have particular meaning
https://linuxconfig.org/list-of-python-e...h-examples
To avoid this behaviour use escape slashes
path = "D:\\Script\\GCloud\\sampleVidR1.mp4"
or construct paths using os.path.join
Reply


Messages In This Thread
File Path not recognised - by starzar - Jul-26-2019, 05:31 AM
RE: File Path not recognised - by fishhook - Jul-26-2019, 07:16 AM
RE: File Path not recognised - by buran - Jul-26-2019, 07:27 AM
RE: File Path not recognised - by starzar - Jul-27-2019, 05:23 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  PIL not recognised in subprocess bobtbown 2 314 Mar-05-2024, 02:31 PM
Last Post: snippsat
  File path by adding various variables Mishal0488 2 1,046 Apr-28-2023, 07:17 PM
Last Post: deanhystad
  Script File Failure-Path Error? jerryf 13 3,477 Nov-30-2022, 09:58 AM
Last Post: jerryf
  WebDriverException: Message: 'PATH TO CHROME DRIVER' executable needs to be in PATH Led_Zeppelin 1 2,225 Sep-09-2021, 01:25 PM
Last Post: Yoriz
  Subprocess.Popen() not working when reading file path from csv file herwin 13 15,127 May-07-2021, 03:26 PM
Last Post: herwin
  Add file to sys.path permanently hcccs 5 8,440 Jan-31-2021, 11:26 AM
Last Post: hcccs
  PyDrive download file path MiniMinnow 0 3,250 Apr-28-2020, 03:01 PM
Last Post: MiniMinnow
  String to File Path creedX 4 3,298 Apr-06-2020, 07:29 PM
Last Post: creedX
  Add path to a local file in pop-up field pythonscripting 1 1,653 Feb-08-2020, 10:57 PM
Last Post: Larz60+
  How to get file name without the full path details and without extension aruncom2006 1 5,940 Jan-13-2020, 07:37 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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