Files
dusk/tools/assetstool/assethelpers.py
2025-08-25 10:16:55 -05:00

10 lines
348 B
Python

import os
from 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('\\', '/')