diff options
author | LRN <lrn1986@gmail.com> | 2013-09-06 16:48:58 +0000 |
---|---|---|
committer | LRN <lrn1986@gmail.com> | 2013-09-06 16:48:58 +0000 |
commit | 8f9923a6fb8a3034370e18579ab4aee00bbee1c6 (patch) | |
tree | 44adca2391c597ef2108b3e2045005d23159e0d7 /src/testbed/buildvars.py.in | |
parent | 2ca4b8a208f6f910c819bbaa6785a25ae2955501 (diff) | |
download | gnunet-8f9923a6fb8a3034370e18579ab4aee00bbee1c6.tar.gz gnunet-8f9923a6fb8a3034370e18579ab4aee00bbee1c6.zip |
W32 compatibility for test_testbed_api_barriers
Diffstat (limited to 'src/testbed/buildvars.py.in')
-rw-r--r-- | src/testbed/buildvars.py.in | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/testbed/buildvars.py.in b/src/testbed/buildvars.py.in index e1b7d7666..339945c20 100644 --- a/src/testbed/buildvars.py.in +++ b/src/testbed/buildvars.py.in | |||
@@ -21,4 +21,14 @@ | |||
21 | # brief: file for importing variables from build syste into python | 21 | # brief: file for importing variables from build syste into python |
22 | # author: Sree Harsha Totakura | 22 | # author: Sree Harsha Totakura |
23 | 23 | ||
24 | import os | ||
25 | |||
26 | exec_prefix = '@exec_prefix@' | ||
24 | libexecdir = '@libexecdir@' | 27 | libexecdir = '@libexecdir@' |
28 | |||
29 | if libexecdir.startswith (exec_prefix): | ||
30 | libexecdir = libexecdir[len (exec_prefix):] | ||
31 | |||
32 | gnunet_prefix = os.environ.get ('GNUNET_PREFIX', None) | ||
33 | if gnunet_prefix and libexecdir.startswith ('/'): | ||
34 | libexecdir = os.path.join (gnunet_prefix, libexecdir[1:]) | ||