From 1d90ed49c347dd957854815f678c76b13af26cb2 Mon Sep 17 00:00:00 2001 From: Dan Ambrisco Date: Fri, 12 Jun 2015 11:49:21 -0100 Subject: [PATCH] Update infer to support symlinking Summary: While working on building a quick Homebrew formula for this, I ran into symlink-related issues around the libs folder. This seems to fix it with minimal impact. Closes https://github.com/facebook/infer/pull/13 Github Author: Dan Ambrisco Test Plan: Imported from GitHub, without a `Test Plan:` line. --- infer/bin/infer | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/infer/bin/infer b/infer/bin/infer index b4b8bbeea..143c8bb29 100755 --- a/infer/bin/infer +++ b/infer/bin/infer @@ -6,10 +6,10 @@ import inferlib import os import sys -SCRIPT_FOLDER = os.path.dirname(__file__) +SCRIPT_FOLDER = os.path.dirname(os.path.realpath(__file__)) CAPTURE_PACKAGE = 'capture' LIB_FOLDER = os.path.join( - os.path.dirname(__file__), os.path.pardir, 'lib') + os.path.dirname(os.path.realpath(__file__)), os.path.pardir, 'lib') # token that identifies the end of the options for infer and the beginning # of the compilation command