We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e7d74e commit 1d97c5fCopy full SHA for 1d97c5f
scripts/wtf.py
@@ -3,6 +3,7 @@
3
import argparse
4
import argcomplete
5
import subprocess
6
+from os.path import basename
7
from tuda_workspace_scripts.print import *
8
from tuda_workspace_scripts.scripts import get_hooks_for_command, load_method_from_file
9
from tuda_workspace_scripts.workspace import get_workspace_root
@@ -24,7 +25,7 @@ def main():
24
25
return 1
26
27
count_fixes = 0
- hooks = list(sorted(get_hooks_for_command("wtf")))
28
+ hooks = list(sorted(get_hooks_for_command("wtf"), key=basename))
29
# Collect all wtf scripts in hooks/wtf folders of TUDA_WSS_SCRIPTS environment variable
30
for script in hooks:
31
# Load script and run fix command and obtain result
0 commit comments