mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-9356 Clean .pyc should include $py.class files if jython interpreter is used
This commit is contained in:
committed by
Dmitry Jemerov
parent
2ab6ffc0a2
commit
04b72193aa
@@ -653,7 +653,7 @@
|
||||
<add-to-group group-id="ProjectViewPopupMenuRunGroup" anchor="first"/>
|
||||
</action>
|
||||
|
||||
<action id="CleanPyc" class="com.jetbrains.python.actions.CleanPycAction" text="Clean .pyc"
|
||||
<action id="CleanPyc" class="com.jetbrains.python.actions.CleanPycAction" text="Clean python compiled files"
|
||||
description="Delete compiled bytecode files in selected directory and its subdirectories">
|
||||
<add-to-group group-id="ProjectViewPopupMenu" anchor="after" relative-to-action="ProjectViewPopupMenuRefactoringGroup"/>
|
||||
</action>
|
||||
|
||||
@@ -62,7 +62,8 @@ public class CleanPycAction extends AnAction {
|
||||
public boolean process(File file) {
|
||||
if (file.getParentFile().getName().equals(PyNames.PYCACHE) ||
|
||||
FileUtilRt.extensionEquals(file.getName(), "pyc") ||
|
||||
FileUtilRt.extensionEquals(file.getName(), "pyo")) {
|
||||
FileUtilRt.extensionEquals(file.getName(), "pyo") ||
|
||||
FileUtilRt.extensionEquals(file.getName(), "$py.class")) {
|
||||
pycFiles.add(file);
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user