https://pantsbuild.org/ logo
#general
Title
# general
t

tall-battery-32825

11/11/2022, 10:24 PM
Is there some way I can get pants with
[python-infer].assets = true
to detect a dependency on assets that are loaded from a folder like so:
Copy code
root_dir = "path/to/directory/with/data/files/"
for filename in os.listdir(root_dir):
  with open(root_dir + filename) as f:
    ...
Or would I have to open each file explicitly?
h

happy-kitchen-89482

11/12/2022, 1:35 AM
That would require writing a plugin
👍 1
4 Views