Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
FileNotFoundError: [Errno 2] ?
#11
I want to access the folder controller.

(Sep-23-2019, 03:57 PM)Gribouillis Wrote: So you're trying to access /home/assistant/PycharmProjects/application/controllers Does this directory exist? Is it really what you want to do?
(Sep-23-2019, 03:57 PM)Gribouillis Wrote: So you're trying to access /home/assistant/PycharmProjects/application/controllers Does this directory exist? Is it really what you want to do?

There was an error posting your reply: You are trying to make a new post too quickly after your previous message. Please wait 41 more seconds.

I want to access the folder controller.
Reply
#12
Did you check with a file browser that this exact directory exists ?
Output:
/home/assistant/PycharmProjects/application/controllers
Reply
#13
(Sep-24-2019, 06:49 AM)Gribouillis Wrote: Did you check with a file browser that this exact directory exists ?
Output:
/home/assistant/PycharmProjects/application/controllers

the correct directory is this one and it makes perfect browser access :

home/assistant/PycharmProjects/pycoderun/application/controllers/
Reply
#14
Then you could perhaps try os.listdir('../pycoderun/application/controllers') in the code.
Reply
#15
didn't run.
Reply


Forum Jump:

User Panel Messages

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