Info
This post is auto-generated from RSS feed The Rust Programming Language Forum - Latest topics. Source: Get image path when opening an image with build
I'm trying to build my own image viewer in sdl2. My goal now is when I open a png, the rust build exec needs to open with the image. I can't manage to find a way to get the path of the image that I opened with the executable. If I use current_dir() it gives me the project directory not the image directory.
4 posts - 3 participants
🏷️ rust_feed