From b46bdd807d8ad0e63c151cb06c39cd7fa7097065 Mon Sep 17 00:00:00 2001 From: minseungchoi Date: Sun, 19 Dec 2021 17:43:06 -0800 Subject: [PATCH] launch.py fullpath doesn't use realpath --- flyrpc/launch.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/flyrpc/launch.py b/flyrpc/launch.py index 41149b5..66650cc 100644 --- a/flyrpc/launch.py +++ b/flyrpc/launch.py @@ -8,14 +8,11 @@ def fullpath(file): """ - NOTE: if you are getting here because of an import error - you may be using a virtual environment with symlinks. - - make a new env with - - `python3 -m venv --copies ` + Instead of undoing the symlinks and getting to the "real path", + maintain symlinks. This avoids the problem caused when using + virtual environments with symlinks to the python executable. """ - return os.path.realpath(os.path.expanduser(file)) + return os.path.expanduser(file) def launch_server(module_or_filename, new_env_vars=None, server_poll_timeout=10, server_poll_interval=0.1, **kwargs): # create list to hold command