S
S
Shroud228lol2020-06-03 11:00:33
Python
Shroud228lol, 2020-06-03 11:00:33

Why is the file path incorrect?

The path variable is specified, in which the path to the Billie Eilish folder. There, one backslash.

spoiler
5ed758872c5cc110492102.png.
Error after program execution.
spoiler
5ed75934e683a259004410.png
Why are slashes added? How to fix it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir Kuts, 2020-06-03
@Shroud228lol

path = os.path.join(f"c:{os.sep}", "Users", "Семья", "Desktop", "Audioplayer", "Billie Eilish")

A
Alexander, 2020-06-03
@shabelski89

what happens if the windows path is specified like this:

path = 'C:/Users/Семья/Desktop/Audioplayer/Billie Eilish/'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question