Skip to content

Homework 5 Adding a filepath #87

Discussion options

You must be logged in to vote

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…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@MuhammedErkam
Comment options

@niosus
Comment options

@MuhammedErkam
Comment options

@niosus
Comment options

Answer selected by MuhammedErkam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants