added pandatable and map viewer attributes

This commit is contained in:
paul
2024-09-28 19:14:24 +05:30
parent 75dc3d7ae2
commit e12d76a7bc
7 changed files with 161 additions and 23 deletions

View File

@@ -0,0 +1,26 @@
export function getPythonAssetPath(fileName, fileType){
let assetPath = "others"
switch (fileType) {
case "image":
assetPath = "images"
break
case "video":
assetPath = "videos"
break
case "audio":
assetPath = "audios"
break
default:
break
}
return `os.path.join("assets", "${assetPath}", "${fileName}")`
}