![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | aengus126 |
Quick and kind of stupid question but I’m working on a program and I’m lazy so it’s a godot app that relies on a python script to run and few files to communicate between the two. When I release this program, it will be a folder that the user can download that contains all the separate apps and files, and it’s a computer program so the user can relocate the main folder wherever they want. This means I don’t know where the path for the project is, and that means the Godot application can’t communicate with the other scripts and files.
So, how do I find the exact file path of the app when the user runs it? I’m guessing there is a method for this somewhere but I looked it up and scanned the docs and didn’t find anything. Thanks!
Not sure, I understand you correctly, but maybe just use relative file paths instead of absolute file paths.
So “this/is/relative” instead of “C:/this/is/absolute” or “/this/is/absolute” on Unix-style file systems.
kbal | 2022-08-04 07:46