import os

pkgs = os.path.join(os.environ["ROOT"], "pkgs")
info_dir = os.path.join(pkgs, "conda-build-test-ignore-some-prefix-files-1.0-0", "info")
has_prefix_file = os.path.join(info_dir, "has_prefix")
print(info_dir)
assert os.path.isfile(has_prefix_file)
with open(has_prefix_file) as f:
    assert "test2" not in f.read()

[((3, 7, 3, 47), 'os.path.join', 'os.path.join', ({(3, 20, 3, 38): "os.environ['ROOT']", (3, 40, 3, 46): '"""pkgs"""'}, {}), "(os.environ['ROOT'], 'pkgs')", False, 'import os\n'), ((4, 11, 4, 88), 'os.path.join', 'os.path.join', ({(4, 24, 4, 28): 'pkgs', (4, 30, 4, 79): '"""conda-build-test-ignore-some-prefix-files-1.0-0"""', (4, 81, 4, 87): '"""info"""'}, {}), "(pkgs, 'conda-build-test-ignore-some-prefix-files-1.0-0', 'info')", False, 'import os\n'), ((5, 18, 5, 54), 'os.path.join', 'os.path.join', ({(5, 31, 5, 39): 'info_dir', (5, 41, 5, 53): '"""has_prefix"""'}, {}), "(info_dir, 'has_prefix')", False, 'import os\n'), ((7, 7, 7, 38), 'os.path.isfile', 'os.path.isfile', ({(7, 22, 7, 37): 'has_prefix_file'}, {}), '(has_prefix_file)', False, 'import os\n')]