added pandatable and map viewer attributes
This commit is contained in:
26
src/frameworks/utils/pythonFilePath.js
Normal file
26
src/frameworks/utils/pythonFilePath.js
Normal 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}")`
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user