Skip to content

Commit

Permalink
main: Import command registry before exec_commands
Browse files Browse the repository at this point in the history
To avoid usage before import.

Fixes #3016
  • Loading branch information
frestr authored and lazka committed Oct 31, 2018
1 parent fc352f6 commit 1af2120
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion quodlibet/quodlibet/main.py
Expand Up @@ -119,6 +119,8 @@ def main(argv=None):

from gi.repository import GLib

from quodlibet.commands import registry as cmd_registry, CommandError

def exec_commands(*args):
for cmd in cmds_todo:
try:
Expand Down Expand Up @@ -150,7 +152,6 @@ def exec_commands(*args):

from quodlibet.mmkeys import MMKeysHandler
from quodlibet.remote import Remote, RemoteError
from quodlibet.commands import registry as cmd_registry, CommandError
from quodlibet.qltk.tracker import SongTracker, FSInterface
try:
from quodlibet.qltk.dbus_ import DBusHandler
Expand Down

0 comments on commit 1af2120

Please sign in to comment.