<#16772 ./pants run &lt;python_file&gt; does not g...
# github-notifications
c
#16772 ./pants run &lt;python_file&gt; does not get invalidated / restarted if the file is changed Issue created by wisechengyi on main:
Copy code
% ./pants list not-a-source-root/slow.py
not-a-source-root:bin
not-a-source-root/slow.py:lib
on release branch (#16768):
Copy code
% ./pants list not-a-source-root/slow.py
not-a-source-root/slow.py:lib
not-a-source-root/
content:
Copy code
BUILD:
python_sources(name='lib')
pex_binary(name='bin', entry_point='slow.py', restartable=True)

slow.py:
import time
print("hello")
# time.sleep(30)
# raise Exception("Should have been restarted by now!")
pantsbuild/pants