Automatically deleting pyc files when corresponding py is moved (Mercurial)

前端 未结 7 1404
庸人自扰
庸人自扰 2021-02-13 04:00

(I foresaw this problem might happen 3 months ago, and was told to be diligent to avoid it. Yesterday, I was bitten by it, hard, and now that it has cost me real money, I am kee

7条回答
  •  Happy的楠姐
    2021-02-13 04:25

    1. Do not store .pyc files in the repository.
    2. Automatize .pyc delete with: find . -name '*.pyc' -delete
    3. While develop use -B argument in Python.

提交回复
热议问题