drwhut / tabletop-club

An open-source platform for playing tabletop games in a physics-based 3D environment for Windows, macOS, and Linux! Made with the Godot Engine.
https://tabletopclub.net
MIT License
1.27k stars 55 forks source link

Fixes the asset import path if os dirs are empty #125

Closed elmodor closed 1 year ago

elmodor commented 1 year ago

Fixes/Solves Fixes #109

I moved the OS calls out of the for loop so they are done only once. If they are empty the replace will be done with "." instead resulting in ./TabletopClub/assets as discussed in #109

Tested and worked for my issue. Should behave the same if OS calls are correct