Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

Commit

Permalink
Make Python shebang lines refer to python3 (cvat-ai#5739)
Browse files Browse the repository at this point in the history
All scripts require Python 3; this change lets them be used in
environments where `python` is either Python 2 or missing.

`email_settings.py` is not a script, so it doesn't need a shebang line
at all.
  • Loading branch information
SpecLad authored and mikhail-treskin committed Jul 1, 2023
1 parent fdeb1f2 commit 6f14ec5
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cvat-sdk/gen/postprocess.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Copyright (C) 2022 CVAT.ai Corporation
#
Expand Down
2 changes: 0 additions & 2 deletions cvat/settings/email_settings.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python

# Copyright (C) 2020-2022 Intel Corporation
# Copyright (C) 2022 CVAT.ai Corporation
#
Expand Down
2 changes: 1 addition & 1 deletion manage.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Copyright (C) 2018-2022 Intel Corporation
#
Expand Down
2 changes: 1 addition & 1 deletion site/process_sdk_docs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Copyright (C) 2022 CVAT.ai Corporation
#
Expand Down
4 changes: 2 additions & 2 deletions tests/json_to_html.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Copyright (C) 2021-2022 Intel Corporation
#
# SPDX-License-Identifier: MIT

from json2html import *
from json2html import json2html
import sys
import os
import json
Expand Down

0 comments on commit 6f14ec5

Please sign in to comment.