Skip to content
Snippets Groups Projects
Commit c68db6ba authored by Campbell Barton's avatar Campbell Barton
Browse files

clang_format_paths: set the current directory

Avoids possible issues running outside the source code directory.
parent 685fbe4b
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,9 @@ import subprocess
CLANG_FORMAT_CMD = "clang-format"
VERSION_MIN = (6, 0, 0)
BASE_DIR = os.path.normpath(os.path.join(os.path.dirname(__file__), "..", "..", ".."))
os.chdir(BASE_DIR)
extensions = (
".c", ".cc", ".cpp", ".cxx",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment