Correct import of argparse
This commit is contained in:
parent
0639200153
commit
90dc6fdae5
@ -2,4 +2,3 @@ flake8>=2.0
|
|||||||
mock>=1.0.1
|
mock>=1.0.1
|
||||||
nose>=1.3.0
|
nose>=1.3.0
|
||||||
PyHamcrest>=1.8.0
|
PyHamcrest>=1.8.0
|
||||||
argparse>=1.4.0
|
|
||||||
|
@ -4,7 +4,6 @@ import os
|
|||||||
import subprocess
|
import subprocess
|
||||||
import os.path as p
|
import os.path as p
|
||||||
import sys
|
import sys
|
||||||
import argparse
|
|
||||||
|
|
||||||
DIR_OF_THIS_SCRIPT = p.dirname( p.abspath( __file__ ) )
|
DIR_OF_THIS_SCRIPT = p.dirname( p.abspath( __file__ ) )
|
||||||
DIR_OF_THIRD_PARTY = p.join( DIR_OF_THIS_SCRIPT, 'third_party' )
|
DIR_OF_THIRD_PARTY = p.join( DIR_OF_THIS_SCRIPT, 'third_party' )
|
||||||
@ -19,8 +18,10 @@ if os.environ.get( 'PYTHONPATH' ):
|
|||||||
python_path.append( os.environ[ 'PYTHONPATH' ] )
|
python_path.append( os.environ[ 'PYTHONPATH' ] )
|
||||||
os.environ[ 'PYTHONPATH' ] = os.pathsep.join( python_path )
|
os.environ[ 'PYTHONPATH' ] = os.pathsep.join( python_path )
|
||||||
|
|
||||||
sys.path.insert( 1, p.abspath( p.join( DIR_OF_THIRD_PARTY, 'argparse' ) ) )
|
sys.path.insert( 1, p.abspath( p.join( DIR_OF_YCMD_THIRD_PARTY,
|
||||||
|
'argparse' ) ) )
|
||||||
|
|
||||||
|
import argparse
|
||||||
|
|
||||||
def RunFlake8():
|
def RunFlake8():
|
||||||
print( 'Running flake8' )
|
print( 'Running flake8' )
|
||||||
|
Loading…
Reference in New Issue
Block a user