Repository: dynaconf/dynaconf

Issue:
[bug] Regression: config file detection not working in subdir on ipython
**Describe the bug**
When running a script from a subdirectory with ipython the `.env` is not found/evaluated in the parent dir.

**To Reproduce**
Steps to reproduce the behavior:

1. Having the following folder structure
```tree
.
├── subdir
│   └── test.py
└── test.py

```

2. Having the following config files:

<!-- Please adjust if you are using different files and formats! -->

<details>
<summary> Config files </summary>

**.env**
```bash
ENV_FOR_DYNACONF=PYTHON_WORKS_IPYTHON_DOES_NOT
```

</details>

3. Having the following app code:

<details>
<summary> Code </summary>

**test.py**  and **subdir/test.py**
```python
from dynaconf import settings
print(settings.ENV_FOR_DYNACONF)
```

</details>

4. Executing under the following environment

<details>
<summary> Execution </summary>

```bash
# conda install with python 3.7.3 and ipyhton 7.4.0 

$ python test.py        
PYTHON_WORKS_IPYTHON_DOES_NOT

$ python subdir/test.py 
PYTHON_WORKS_IPYTHON_DOES_NOT

$ cd subdir/

subdir$ python test.py        
PYTHON_WORKS_IPYTHON_DOES_NOT

subdir$ cd ..

$ ipython ./test.py 
PYTHON_WORKS_IPYTHON_DOES_NOT

$ ipython ./subdir/test.py   
PYTHON_WORKS_IPYTHON_DOES_NOT

$ cd subdir/

subdir$ ipython ./test.py 
DEVELOPMENT
```

</details>

**Expected behavior**
Last command should output PYTHON_WORKS_IPYTHON_DOES_NOT
(works with dynaconf 1.2.1)

**Environment (please complete the following information):**
 - OS: Linux/Ubuntu18.04
 - conda 4.6.14
 - python 3.7.3
 - ipython 7.4.0/7.5.0
 - Dynaconf Version 2.0.1/pip



Discussion:
inspect is working differently in **ipython**:
```ipython
In [3]: inspect.stack()[-1].filename                                                                                                                                                    
Out[3]: '/home/homedir/miniconda3/envs/myenv/bin/ipython'

```
and in **python**:
```python
>>> inspect.stack()[-1].filename
'<stdin>'
```
in a script it returns in **ipython**:
```
/home/homedir/miniconda3/envs/myenv/bin/ipython
```


and in **python**:
```
./test.py
```
Thanks for reporting, I am on it. The `find_files` needs to be enable to detect the call from REPL

Resolving patch:
diff --git a/dynaconf/utils/files.py b/dynaconf/utils/files.py
--- a/dynaconf/utils/files.py
+++ b/dynaconf/utils/files.py
@@ -61,12 +61,13 @@ def find_file(filename=".env", project_root=None, skip_files=None, **kwargs):
 
     script_dir = os.path.dirname(os.path.abspath(inspect.stack()[-1].filename))
 
-    # Path to invoked script and recursivelly to root with its ./config dirs
+    # Path to invoked script and recursively to root with its ./config dirs
     search_tree.extend(_walk_to_root(script_dir))
 
-    # Where Python interpreter was invoked from and its ./config
-    search_tree.extend([work_dir, os.path.join(work_dir, "config")])
+    # Path to where Python interpreter was invoked and recursively to root
+    search_tree.extend(_walk_to_root(work_dir))
 
+    # Don't look the same place twice
     search_tree = deduplicate(search_tree)
 
     global SEARCHTREE
diff --git a/example/issues/184_ipython/app.py b/example/issues/184_ipython/app.py
new file mode 100644
--- /dev/null
+++ b/example/issues/184_ipython/app.py
@@ -0,0 +1,5 @@
+from dynaconf import settings
+
+print(settings.ENV_FOR_DYNACONF)
+
+assert settings.ENV_FOR_DYNACONF == "WORKS_ON_PYTHON_AND_IPYTHON"
diff --git a/example/issues/184_ipython/subdir/app.py b/example/issues/184_ipython/subdir/app.py
new file mode 100644
--- /dev/null
+++ b/example/issues/184_ipython/subdir/app.py
@@ -0,0 +1,5 @@
+from dynaconf import settings
+
+print(settings.ENV_FOR_DYNACONF)
+
+assert settings.ENV_FOR_DYNACONF == "WORKS_ON_PYTHON_AND_IPYTHON"


Test patch:
diff --git a/example/issues/184_ipython/test.sh b/example/issues/184_ipython/test.sh
new file mode 100755
--- /dev/null
+++ b/example/issues/184_ipython/test.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+python app.py || exit 1
+
+pushd subdir
+python app.py || exit 1
+popd
+
+
+ipython app.py || exit 1
+
+pushd subdir
+ipython app.py || exit 1
+popd