mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +00:00
reorder imports so vendorized argparse works correctly
This commit is contained in:
parent
3e6f115ed8
commit
590909bafc
18
bin/autojump
18
bin/autojump
@ -21,14 +21,6 @@
|
||||
|
||||
from __future__ import division, print_function
|
||||
|
||||
try:
|
||||
import argparse
|
||||
except ImportError:
|
||||
# Python 2.6 support
|
||||
sys.path.append(os.path.dirname(os.path.realpath(__file__)))
|
||||
import autojump_argparse as argparse
|
||||
sys.path.pop()
|
||||
|
||||
import collections
|
||||
import difflib
|
||||
import math
|
||||
@ -39,6 +31,14 @@ import shutil
|
||||
import sys
|
||||
import tempfile
|
||||
|
||||
try:
|
||||
import argparse
|
||||
except ImportError:
|
||||
# Python 2.6 support
|
||||
sys.path.append(os.path.dirname(os.path.realpath(__file__)))
|
||||
import autojump_argparse as argparse
|
||||
sys.path.pop()
|
||||
|
||||
class Database:
|
||||
"""
|
||||
Object for interfacing with autojump database file.
|
||||
@ -199,7 +199,7 @@ class Database:
|
||||
def set_defaults():
|
||||
config = {}
|
||||
|
||||
config['version'] = 'release-v21.6.6'
|
||||
config['version'] = 'release-v21.6.7'
|
||||
config['max_paths'] = 1000
|
||||
config['separator'] = '__'
|
||||
config['home'] = os.path.expanduser('HOME')
|
||||
|
Loading…
Reference in New Issue
Block a user