From 0c1572ce336cac034ee6931b4d5dce044e686523 Mon Sep 17 00:00:00 2001 From: Mitchell Stokes Date: Sat, 17 Nov 2018 14:19:04 -0800 Subject: [PATCH] deploy-ng: Fix reference (e.g., texture) paths when using egg2bam Fixes #277 --- direct/src/showutil/dist.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/direct/src/showutil/dist.py b/direct/src/showutil/dist.py index 2e348ed629..89ec394d6c 100644 --- a/direct/src/showutil/dist.py +++ b/direct/src/showutil/dist.py @@ -58,8 +58,9 @@ def egg2bam(_build_cmd, srcpath, dstpath): try: subprocess.check_call([ 'egg2bam', - '-o', - dstpath, + '-o', dstpath, + '-pd', os.path.dirname(os.path.abspath(srcpath)), + '-ps', 'rel', srcpath ]) except FileNotFoundError: