Add real directory of target to syspath pr#735)
@@ -43,7 +43,7 @@ from _pydevd_frame_eval.pydevd_frame_eval_main import frame_eval_func, stop_fram
from _pydevd_bundle.pydevd_utils import save_main_module
from pydevd_concurrency_analyser.pydevd_concurrency_logger import ThreadingLogger, AsyncioLogger, send_message, cur_time
from pydevd_concurrency_analyser.pydevd_thread_wrappers import wrap_threads
-from pydevd_file_utils import get_fullname
+from pydevd_file_utils import get_fullname, rPath
__version_info__ = (1, 1, 1)
@@ -987,7 +987,7 @@ class PyDB:
# sys.path.insert(0, os.getcwd())
# Changed: it's not the local directory, but the directory of the file launched
# The file being run must be in the pythonpath (even if it was not before)
- sys.path.insert(0, os.path.split(file)[0])
+ sys.path.insert(0, os.path.split(rPath(file))[0])
while not self.ready_to_run:
time.sleep(0.1) # busy wait until we receive run command
