Skip to content

Commit

Permalink
[indexfile_main] Move imports to the beginning of the file.
Browse files Browse the repository at this point in the history
  • Loading branch information
emi80 committed Sep 9, 2014
1 parent 369ecde commit 79e890b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions indexfile/cli/indexfile_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@
"""
import sys
import os
import runpy
import indexfile
import logging
from docopt import docopt
from indexfile.cli import validate, open_index, load_config

def main():
import indexfile
import logging
name = indexfile.__name__
version = indexfile.__version__
log = indexfile.getLogger(__name__)
Expand All @@ -42,7 +43,6 @@ def main():

argv = [args['<command>']] + args['<args>']
if args['<command>'] in 'show add remove'.split():
import runpy
if len(argv) == 1 and args['<command>'] != "show":
argv.append('--help')
sys.argv = argv
Expand Down

0 comments on commit 79e890b

Please sign in to comment.