0

From the console

>>> sublime.run_command('test_application_args',{'arg1':'5', 'arg2':'4'})
running TestApplicationArgsCommand
arg1: 5
arg2: 4

I want to find what .py file has that command, and if it isn't one if it's some old py file I removed and somehow the pyc file got left behind, then I want to delete the culprit pyc file. How can I find out where this class is located?

I have a similar class and method in one file.

(this one I think was called TestApplicationArgsCommand but I renamed it to test if it was being called, and I changed what it printed, but it didn't change what was outputted from that run command in the console, so I know this one isn't it.

import sublime, sublime_plugin

class TestApplicationArgsPodCommand(sublime_plugin.ApplicationCommand):
    def run(self, arg1, arg2):
        print("running TestApplicationArgsPodCommand")
        print("arg1___: " + arg1)
        print("arg2: " + arg2)

And I have similar ones in another file but I see from what they print (besides the fact that the others don't take 2 args), that they aren't the ones being called either.

How can I find out where this class and method is that is getting called?

Can the python console tell me?

4

0 に答える 0