Description: Use Debian's ycmd package locations for ycmd.
 This patch also sets vim-youcompleteme to not use sys.executable path
 for python interpreter.

--- a/autoload/youcompleteme.vim
+++ b/autoload/youcompleteme.vim
@@ -166,7 +166,8 @@
 
 # Add python sources folder to the system path.
 script_folder = vim.eval( 's:script_folder_path' )
-sys.path.insert( 0, os.path.join( script_folder, '..', 'python' ) )
+sys.path.insert( 0, os.path.join( script_folder, '/usr/share/vim-youcompleteme/python' ) )
+sys.path.insert( 0, os.path.join( script_folder, '/usr/lib/ycmd' ) )
 
 from ycm.setup import SetUpSystemPaths, SetUpYCM
 
--- a/python/ycm/paths.py
+++ b/python/ycm/paths.py
@@ -31,8 +31,7 @@
 
 # Can't import these from setup.py because it makes nosetests go crazy.
 DIR_OF_CURRENT_SCRIPT = os.path.dirname( os.path.abspath( __file__ ) )
-DIR_OF_YCMD = os.path.join( DIR_OF_CURRENT_SCRIPT, '..', '..', 'third_party',
-                            'ycmd' )
+DIR_OF_YCMD = "/usr/lib/ycmd"
 WIN_PYTHON_PATH = os.path.join( sys.exec_prefix, 'python.exe' )
 PYTHON_BINARY_REGEX = re.compile(
   r'python((2(\.[67])?)|(3(\.[3-9])?))?(.exe)?$' )
@@ -67,16 +66,6 @@
   if IsPythonVersionCorrect( python_interpreter ):
     return python_interpreter
 
-  # On UNIX platforms, we use sys.executable as the Python interpreter path.
-  # We cannot use sys.executable on Windows because for unknown reasons, it
-  # returns the Vim executable. Instead, we use sys.exec_prefix to deduce the
-  # interpreter path.
-  python_interpreter = ( WIN_PYTHON_PATH if utils.OnWindows() else
-                         sys.executable )
-
-  if IsPythonVersionCorrect( python_interpreter ):
-    return python_interpreter
-
   # As a last resort, we search python in the PATH. We prefer Python 2 over 3
   # for the sake of backwards compatibility with ycm_extra_conf.py files out
   # there; few people wrote theirs to work on py3.
@@ -132,4 +121,4 @@
 
 
 def PathToServerScript():
-  return os.path.join( DIR_OF_YCMD, 'ycmd' )
+  return "/usr/bin/ycmd"
--- a/python/ycm/setup.py
+++ b/python/ycm/setup.py
@@ -34,11 +34,6 @@
 def SetUpSystemPaths():
   sys.path.insert( 0, os.path.join( DIR_OF_YCMD ) )
 
-  from ycmd import server_utils as su
-  su.AddNearestThirdPartyFoldersToSysPath( DIR_OF_CURRENT_SCRIPT )
-  # We need to import ycmd's third_party folders as well since we import and
-  # use ycmd code in the client.
-  su.AddNearestThirdPartyFoldersToSysPath( su.__file__ )
 
 
 def SetUpYCM():
