Browse Source

deploy-ng: Fix reference (e.g., texture) paths when using egg2bam

Fixes #277
Mitchell Stokes 7 years ago
parent
commit
0c1572ce33
1 changed files with 3 additions and 2 deletions
  1. 3 2
      direct/src/showutil/dist.py

+ 3 - 2
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: