From d16d3f1ced04cd10c122b6a31b3afeea3e92bbfd Mon Sep 17 00:00:00 2001
From: Lionel GUEZ <guez@lmd.ens.fr>
Date: Wed, 15 Dec 2021 21:28:43 +0100
Subject: [PATCH] Use a symbolic link

Use a symbolic link instead of appending to `sys.path`. THe motivation
is that in the Python interpreter, the following statements failed
before the present commit:

```python
import sys
sys.path.append("/path/to/Detection_eddies/Inst_eddies/Analysis")
import plot_eddy_contours
```

`sys.path[0]` then does not contain
`/path/to/Detection_eddies/Inst_eddies/Analysis` so
`plot_eddy_contours` could not find `util_eddies`.
---
 Inst_eddies/Analysis/plot_eddy_contours.py | 1 -
 Inst_eddies/Analysis/util_eddies.py        | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)
 create mode 120000 Inst_eddies/Analysis/util_eddies.py

diff --git a/Inst_eddies/Analysis/plot_eddy_contours.py b/Inst_eddies/Analysis/plot_eddy_contours.py
index 13c2fbe1..5962b7bd 100755
--- a/Inst_eddies/Analysis/plot_eddy_contours.py
+++ b/Inst_eddies/Analysis/plot_eddy_contours.py
@@ -27,7 +27,6 @@ from os import path
 from matplotlib import patches
 import f90nml
 import sys
-sys.path.append(path.join(sys.path[0], "../../Common"))
 import util_eddies
 
 def select_ishapes(d, handler, window = None):
diff --git a/Inst_eddies/Analysis/util_eddies.py b/Inst_eddies/Analysis/util_eddies.py
new file mode 120000
index 00000000..d1f6b961
--- /dev/null
+++ b/Inst_eddies/Analysis/util_eddies.py
@@ -0,0 +1 @@
+../../Common/util_eddies.py
\ No newline at end of file
-- 
GitLab