Homework 5 Adding a filepath #87
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hey @MuhammedErkam thanks for the question! This is actually a pretty important one and a very typical situation that happens a lot. The reason for this is that your path is the absolute path that only works for your local system. On your hard drive there is an image under this path, but if you try to run it on a different system, which is what the bot does, the path is going to be different, right? To make sure your image is found you will have to have a relative link for the image for now, something like I actually provide this path in one of the examples in the homework description but might need to stress it more when talking about the test data. Anyway, I think it is an important issue to have as it makes one think about the paths and once you figure it out, you will know this so much better! 🙌 |
Beta Was this translation helpful? Give feedback.
Hey @MuhammedErkam thanks for the question! This is actually a pretty important one and a very typical situation that happens a lot. The reason for this is that your path is the absolute path that only works for your local system. On your hard drive there is an image under this path, but if you try to run it on a different system, which is what the bot does, the path is going to be different, right?
To make sure your image is found you will have to have a relative link for the image for now, something like
"../../pixelator/test_data/test.png"
. Think of where your binary is going to be called from and how the path to the image will look like from that place. Does this make any sense?I act…