800 |
800 |
801 elif method == "RequestCompletion": |
801 elif method == "RequestCompletion": |
802 self.__completionList(params["text"]) |
802 self.__completionList(params["text"]) |
803 |
803 |
804 elif method == "RequestUTPrepare": |
804 elif method == "RequestUTPrepare": |
|
805 if params["syspath"]: |
|
806 sys.path = params["syspath"] + sys.path |
805 sys.path.insert( |
807 sys.path.insert( |
806 0, os.path.dirname(os.path.abspath(params["filename"]))) |
808 0, os.path.dirname(os.path.abspath(params["filename"]))) |
807 os.chdir(sys.path[0]) |
809 os.chdir(sys.path[0]) |
808 |
810 |
809 # set the system exception handling function to ensure, that |
811 # set the system exception handling function to ensure, that |