amithjkamath commited on
Commit
358087c
·
1 Parent(s): a98fbc5

Make lint target work without venv

Browse files
Files changed (1) hide show
  1. Makefile +5 -1
Makefile CHANGED
@@ -21,7 +21,11 @@ fmt:
21
  @echo "No formatter configured."
22
 
23
  lint:
24
- $(VENV)/bin/python -m py_compile app.py src/rtssdiffviewer/*.py
 
 
 
 
25
 
26
  clean:
27
  rm -rf $(VENV) __pycache__ src/rtssdiffviewer/__pycache__
 
21
  @echo "No formatter configured."
22
 
23
  lint:
24
+ @if [ -x "$(VENV)/bin/python" ]; then \
25
+ $(VENV)/bin/python -m py_compile app.py src/rtssdiffviewer/*.py; \
26
+ else \
27
+ $(PYTHON) -m py_compile app.py src/rtssdiffviewer/*.py; \
28
+ fi
29
 
30
  clean:
31
  rm -rf $(VENV) __pycache__ src/rtssdiffviewer/__pycache__