Files
dusk/tools/assetstool/assethelpers.py
Dominic Masters d788de8637
Some checks failed
Build Dusk / run-tests (push) Successful in 1m56s
Build Dusk / build-linux (push) Successful in 1m44s
Build Dusk / build-psp (push) Failing after 1m35s
Starting refactor of tools, thank gosh
2026-01-25 21:07:31 -06:00

10 lines
365 B
Python

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