all repos — mgba @ cc255b794b0456540af5442cf1129d86f19e9324

mGBA Game Boy Advance Emulator

Make path absolute in perf.py
Jeffrey Pfau jeffrey@endrift.com
Thu, 09 Oct 2014 01:53:47 -0700
commit

cc255b794b0456540af5442cf1129d86f19e9324

parent

562a33d98b8faf2c19b8e3a22118e50604e9c385

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M tools/perf.pytools/perf.py

@@ -31,8 +31,8 @@ args.append('-N')

args.append(self.rom) env = {} if 'LD_LIBRARY_PATH' in os.environ: - env['LD_LIBRARY_PATH'] = os.environ['LD_LIBRARY_PATH'] - env['DYLD_LIBRARY_PATH'] = os.environ['LD_LIBRARY_PATH'] # Fake it on OS X + env['LD_LIBRARY_PATH'] = os.path.abspath(os.environ['LD_LIBRARY_PATH']) + env['DYLD_LIBRARY_PATH'] = env['LD_LIBRARY_PATH'] # Fake it on OS X proc = subprocess.Popen(args, stdout=subprocess.PIPE, cwd=cwd, universal_newlines=True, env=env) try: self.wait(proc)