Make paths absolute to fix permissions issues

on Android
This commit is contained in:
2023-06-16 11:16:29 +02:00
parent a939497f1a
commit 25215ea41a
3 changed files with 5 additions and 6 deletions

View File

@@ -49,7 +49,7 @@ func PollWebsocket():
print("trying to open " + result_path)
var resut_file = FileAccess.open(result_path,FileAccess.READ)
result_value = "{path}:{data}".format({
"path":result_path,
"path": result_path.get_file(),
"data": Marshalls.raw_to_base64(resut_file.get_buffer(resut_file.get_length()))
})
var debugFile = FileAccess.open("user://debug.log", FileAccess.WRITE)

View File

@@ -23,9 +23,8 @@ func _ready():
print("Starting render node")
var directory = DirAccess.open(".")
directory.make_dir(output_dir)
directory.make_dir(cache_dir)
DirAccess.make_dir_absolute(output_dir)
DirAccess.make_dir_absolute(cache_dir)
$JobServer.InitWebsocket()
func FinishedRendering():

View File

@@ -2,6 +2,6 @@
auth_key=ay1234
websocket_url="ws://localhost:6980"
public_path="http://localhost:8899/"
output_dir="./output"
cache_dir="./cache"
output_dir="user://output"
cache_dir="user://cache"
serve_mode="local"