| 1 | aports is a git tree so these git commands get the wrong directory
|
| 2 | |
| 3 | |
| 4 | @@ -50,17 +50,7 @@
|
| 5 |
|
| 6 | def set_src_dir(compile_dir):
|
| 7 | global src_dir
|
| 8 | - git = subprocess.Popen(
|
| 9 | - ['git', '-C', compile_dir, 'rev-parse', '--show-toplevel'],
|
| 10 | - stdout=subprocess.PIPE,
|
| 11 | - stderr=subprocess.PIPE)
|
| 12 | - src_dir, _ = git.communicate()
|
| 13 | - if git.returncode:
|
| 14 | - return
|
| 15 | - if isinstance(src_dir, str):
|
| 16 | - src_dir = src_dir.rstrip()
|
| 17 | - else:
|
| 18 | - src_dir = src_dir.decode('utf-8').rstrip()
|
| 19 | + src_dir = os.path.abspath(os.getcwd())
|
| 20 |
|
| 21 | load_libcxx_pretty_printers(src_dir)
|
| 22 |
|