Absolute paths in core.loadSkyImage() not working #2012
-
Hi! When I use root.loadSkyImage() in a script, I cannot get it to load a file using an absolute path. The documentation says:
It seems that this is the case with absolute paths too. (I'm on Windows) For example:
'D:\test.png' will try to load '%AppData%\Stellarium\scripts\D:\test.png' etc. Using / or \ doesn't make a difference. Is there a way to load absolute paths or do I have to stick with the default paths? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
I cannot remember the details here. Can you try file://D:/path/test.png? Or /D:/path/test.png? |
Beta Was this translation helpful? Give feedback.
-
They both don't work. procmon.exe tells me they landed at
|
Beta Was this translation helpful? Give feedback.
-
Indeed. At least since 2009, "scripts/" is prepended to any given filename. There is no way to specify an absolute path directly. I have fixed the documentation accordingly. |
Beta Was this translation helpful? Give feedback.
-
fyi in the documentation for core.loadSkyImage it says:
I think that's wrong. The image definitely seems to be affected by refraction. Extinction I can't tell from just looking at it. |
Beta Was this translation helpful? Give feedback.
Indeed. At least since 2009, "scripts/" is prepended to any given filename. There is no way to specify an absolute path directly. I have fixed the documentation accordingly.