import sys
import os
# ensure sys knows about pyqode.core in the test env
sys.path.insert(0, os.getcwd())
from pyqode.core import backend


if __name__ == '__main__':
    print('Server started')
    print(sys.path)
    print(os.getcwd())
    backend.CodeCompletionWorker.providers.append(
        backend.DocumentWordsProvider())
    backend.serve_forever()

import sys
import os
# ensure sys knows about pyqode.core in the test env
sys.path.insert(0, os.getcwd())
sys.path.insert(0, os.path.abspath(".."))
from pyqode.core import backend


if __name__ == '__main__':
    print('Server started')
    print(sys.path)
    print(os.getcwd())
    backend.CodeCompletionWorker.providers.append(
        backend.DocumentWordsProvider())
    backend.serve_forever()

Fix test suite on travis (restore previous path config)
Fix test suite on travis (restore previous path config)

  import sys
  import os
  # ensure sys knows about pyqode.core in the test env
  sys.path.insert(0, os.getcwd())
+ sys.path.insert(0, os.path.abspath(".."))
  from pyqode.core import backend
  
  
  if __name__ == '__main__':
      print('Server started')
      print(sys.path)
      print(os.getcwd())
      backend.CodeCompletionWorker.providers.append(
          backend.DocumentWordsProvider())
      backend.serve_forever()
  
Fix test suite on travis (restore previous path config)
## Code Before:
import sys
import os
# ensure sys knows about pyqode.core in the test env
sys.path.insert(0, os.getcwd())
from pyqode.core import backend


if __name__ == '__main__':
    print('Server started')
    print(sys.path)
    print(os.getcwd())
    backend.CodeCompletionWorker.providers.append(
        backend.DocumentWordsProvider())
    backend.serve_forever()

## Instruction:
Fix test suite on travis (restore previous path config)
## Code After:
import sys
import os
# ensure sys knows about pyqode.core in the test env
sys.path.insert(0, os.getcwd())
sys.path.insert(0, os.path.abspath(".."))
from pyqode.core import backend


if __name__ == '__main__':
    print('Server started')
    print(sys.path)
    print(os.getcwd())
    backend.CodeCompletionWorker.providers.append(
        backend.DocumentWordsProvider())
    backend.serve_forever()
