MCPcopy Create free account
hub / github.com/chasingboy/Xtools / SwitchLanguageCommand

Class SwitchLanguageCommand

xtools.py:528–536  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

526
527# Change Language
528class SwitchLanguageCommand(sublime_plugin.TextCommand):
529 def run(self, edit):
530 current_menu = os.path.join(XTOOLS_ROOT, "Context.sublime-menu")
531 backup_menu = os.path.join(XTOOLS_ROOT, "Context.sublime-menu.bak")
532 tmp_menu = os.path.join(XTOOLS_ROOT, "Context.sublime-menu.tmp")
533
534 os.rename(current_menu, tmp_menu)
535 os.rename(backup_menu, current_menu)
536 os.rename(tmp_menu, backup_menu)
537
538
539# Notebook

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected