How to grab files outside of res://

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By The_Duskitty
:warning: Old Version Published before Godot 3 was released.

Basically i need a way to grab an XML from outside of the project area of the compile project so i can load it in (so i can basically have a plugin system of sort) is there a way to do this so i could get a file from within the folder of where the game itself (the exceutable) is?

Someone answered this already, search through the questions.

batmanasb | 2016-04-10 07:46

:bust_in_silhouette: Reply From: batmanasb

I think it was answered here

:bust_in_silhouette: Reply From: eaglecat

var path = “res://folderA”
var path = “…/folderB”
var path = “C:/folderC”

you can use all of these format.
note that path string use /. not \

When I attempt to use a relative path to attach a script to a node it fails to load. Any ideas?

jarlowrey | 2017-05-11 19:26