define INFER_INFER_DIRECTORY more concisely

Summary: public
paths look a bit silly prior to this diff, as they go up from infer/ to go back
into infer/ right away, eg:

  /home/jul/infer/infer/lib/python/inferlib/../../../../infer/lib/java/processor.jar

This changes this path to the less silly:

  /home/jul/infer/infer/lib/python/inferlib/../../../lib/java/processor.jar"

Reviewed By: martinoluca

Differential Revision: D2631775

fb-gh-sync-id: 6df5d4d
master
Jules Villard 9 years ago committed by facebook-github-bot-7
parent d0d0a5efa0
commit f88164dae9

@ -33,9 +33,9 @@ import time
# this assumes that this file lives in infer/lib/python/infer/ and the binaries
# are in infer/bin/
INFER_PYTHON_DIRECTORY = os.path.dirname(os.path.realpath(__file__))
INFER_ROOT_DIRECTORY = os.path.join(INFER_PYTHON_DIRECTORY,
os.pardir, os.pardir, os.pardir, os.pardir)
INFER_INFER_DIRECTORY = os.path.join(INFER_ROOT_DIRECTORY, 'infer')
INFER_INFER_DIRECTORY = os.path.join(INFER_PYTHON_DIRECTORY,
os.pardir, os.pardir, os.pardir)
INFER_ROOT_DIRECTORY = os.path.join(INFER_INFER_DIRECTORY, os.pardir)
FCP_DIRECTORY = os.path.join(INFER_ROOT_DIRECTORY, 'facebook-clang-plugins')
LIB_DIRECTORY = os.path.join(INFER_INFER_DIRECTORY, 'lib')
BIN_DIRECTORY = os.path.join(INFER_INFER_DIRECTORY, 'bin')

Loading…
Cancel
Save