Browse Source

deploy-ng: fix error on Linux

rdb 8 years ago
parent
commit
6025bf0a8e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      direct/src/showutil/dist.py

+ 1 - 1
direct/src/showutil/dist.py

@@ -593,7 +593,7 @@ class build_apps(distutils.core.Command):
 
 
         elif magic == b'\x7FELF':
         elif magic == b'\x7FELF':
             # Elf magic.  Used on (among others) Linux and FreeBSD.
             # Elf magic.  Used on (among others) Linux and FreeBSD.
-            deps = self._read_dependencies_elf(fp, os.path.dirname(source_path), search_path)
+            deps = self._read_dependencies_elf(fp, target_dir, search_path)
 
 
         elif magic in (b'\xCE\xFA\xED\xFE', b'\xCF\xFA\xED\xFE'):
         elif magic in (b'\xCE\xFA\xED\xFE', b'\xCF\xFA\xED\xFE'):
             # A Mach-O file, as used on macOS.
             # A Mach-O file, as used on macOS.