Skip to content

Commit 246addf

Browse files
committed
Fix code.
1 parent d610ccd commit 246addf

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

Changelog.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
Changelog
22
=========
33

4+
* Pylama updated to version 3.3.2
45
* Get fold's expression symbol from &fillchars;
56
* Fixed error when setting g:pymode_breakpoint_cmd (expobrain);
67
* Fixed code running;
78
* Ability to override rope project root and .ropeproject folder
89
* Added path argument to `PymodeRopeNewProject` which skips prompt
9-
10+
* Disable `pymode_rope_lookup_project` by default
1011
* Options added:
1112
'pymode_rope_project_root', 'pymode_rope_ropefolder'
1213

doc/pymode.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ possibly unrelated, files)
381381
Enable searching for |.ropeproject| in parent directories
382382
*'g:pymode_rope_lookup_project'*
383383
>
384-
let g:pymode_rope_lookup_project = 1
384+
let g:pymode_rope_lookup_project = 0
385385
386386
You can also manually set the rope project directory. If not specified rope will
387387
use the current directory.

plugin/pymode.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ call pymode#default('g:pymode_rope_project_root', '')
158158
call pymode#default('g:pymode_rope_ropefolder', '.ropeproject')
159159

160160
" If project hasnt been finded in current working directory, look at parents directory
161-
call pymode#default('g:pymode_rope_lookup_project', 1)
161+
call pymode#default('g:pymode_rope_lookup_project', 0)
162162

163163
" Enable Rope completion
164164
call pymode#default('g:pymode_rope_completion', 1)

pymode/rope.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ def get_ctx(*args, **kwargs):
293293
return resources.get(path)
294294

295295
project_path = env.var('g:pymode_rope_project_root')
296-
if project_path:
296+
if not project_path:
297297
project_path = env.curdir
298298
env.debug('Look ctx', project_path)
299299
if env.var('g:pymode_rope_lookup_project', True):
@@ -302,10 +302,13 @@ def get_ctx(*args, **kwargs):
302302
if not os.path.exists(project_path):
303303
env.error("Rope project root not exist: %s" % project_path)
304304
ctx = None
305+
305306
else:
306307
ctx = projects.get(project_path)
308+
307309
if not ctx:
308310
projects[project_path] = ctx = cls(path, project_path)
311+
309312
resources[path] = ctx
310313
return ctx
311314
return get_ctx

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy