Files
dusk/tools/assetstool/assethelpers.py
Dominic Masters c53439066e
Some checks failed
Build Dusk / build-linux (push) Failing after 40s
Build Dusk / build-psp (push) Failing after 1m7s
Cleanup, prep for editor
2025-11-15 22:21:03 -06:00

10 lines
359 B
Python

import os
from assetstool.args import args
def getAssetRelativePath(fullPath):
# Get the relative path to the asset
return os.path.relpath(fullPath, start=args.assets).replace('\\', '/')
def getBuiltAssetsRelativePath(fullPath):
# Get the relative path to the built asset
return os.path.relpath(fullPath, start=args.output_assets).replace('\\', '/')