From 88add63782af907e963c294c8d34b40ecc7ab8cc Mon Sep 17 00:00:00 2001 From: Don Jayamanne Date: Wed, 4 Apr 2018 14:21:08 -0700 Subject: [PATCH] import pydevd_file_utils and invoke functions as module attributes (#310) Part of #241 --- ptvsd/pydevd/_pydevd_bundle/pydevd_comm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ptvsd/pydevd/_pydevd_bundle/pydevd_comm.py b/ptvsd/pydevd/_pydevd_bundle/pydevd_comm.py index c965b4f9e..e9c49d431 100644 --- a/ptvsd/pydevd/_pydevd_bundle/pydevd_comm.py +++ b/ptvsd/pydevd/_pydevd_bundle/pydevd_comm.py @@ -84,6 +84,7 @@ from _pydevd_bundle import pydevd_xml from _pydevd_bundle import pydevd_vm_type from pydevd_file_utils import get_abs_path_real_path_and_base_from_frame, NORM_PATHS_AND_BASE_CONTAINER, norm_file_to_client +import pydevd_file_utils import sys import traceback from _pydevd_bundle.pydevd_utils import quote_smart as quote, compare_object_attrs_key, to_string @@ -690,7 +691,7 @@ def make_thread_suspend_str(self, thread_id, frame, stop_reason, message, suspen abs_path_real_path_and_base = get_abs_path_real_path_and_base_from_frame(curr_frame) - myFile = norm_file_to_client(abs_path_real_path_and_base[0]) + myFile = pydevd_file_utils.norm_file_to_client(abs_path_real_path_and_base[0]) if file_system_encoding.lower() != "utf-8" and hasattr(myFile, "decode"): # myFile is a byte string encoded using the file system encoding # convert it to utf8