Yes, we do have different purposes, but the solution is the same. Sorry to have hijacked this thread, but i think our problems have enough in common to not need another thread.
What i essentially need is to be able to load an image, anywhere on the disk. My app is a desktop (macOS and win) level editor. Imagine Gimp or Photoshop opening a png file. My app will come with bundled textures, but i want the user to be able to select their own textures from their own folder, so that their maps/levels can have their own personal look.
I can open json files with no problem since io.open can open absolute paths, and i can even execute os commands to get image files to my apps documents directory. I would just like to do it directly, by directly loading the image the user specified from the absolute path. that’s all. No extra files, no cleaning temporary directories, no extra junk.
I already have my own tools to do filesystem stuff, and already have enough experience with environment variables, i do not need any of those. (But it is cool you shared the info for others)
Since the thread title is “creating an imageSheet using absolute path in desktop”, i thought our problems were close enough. We both need a way to load images/sheets with an absolute path. So i already created the feature request and had already shared it, here is the link again.
As a recap:
-
The app is a desktop app, no iOS, no Android, no WP
-
I don’t need a folder to access a common set of content
-
I do need to load images from any place to show them to the user.
I think i could list at least a thousand desktop apps that can read any file on any disk, including Corona SDK, it can load my projects’ main.lua using relative paths.