Skip to content

Ensure that the script root path is stored without backslashes - #103

Merged
TitanNano merged 1 commit into
TitanNano:masterfrom
Beliar83:fix_slashes
Oct 6, 2026
Merged

TitanNano merged 1 commit into
TitanNano:masterfrom
Beliar83:fix_slashes

Conversation

@Beliar83

@Beliar83 Beliar83 commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

I had noticed that the names of script classes were not recognised when used in GDScript. After some digging I found that the script root passed to localize_path started with "e:\", which it did not recognise as the project path because Godot (4.7?) only recognises the path with forward slashes and thus localize_path returns the path as given.
This change should ensure that script root uses forward slashes regardless of input.

@TitanNano TitanNano added the bug Something isn't working label Oct 6, 2026
@TitanNano
TitanNano merged commit b21b295 into TitanNano:master Oct 6, 2026
14 checks passed
@TitanNano

Copy link
Copy Markdown
Owner

Thank you for the contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants