U
U
user7770002020-05-30 17:07:17
Python
user777000, 2020-05-30 17:07:17

How to specify a relative path to a folder in the program?

In the program code, I have the path to the folder. When I run it from the interpreter, everything works, but when I try to run it from the console, I get an error that the folder was not found. How to fix it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Korotenko, 2020-05-30
@user777000

Use environment variables. And then add the path from the start directory to the date directory

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question