forked from VimPlug/jedi
Refactor django path support
This commit is contained in:
@@ -13,7 +13,7 @@ else:
|
||||
TestCase = unittest.TestCase
|
||||
|
||||
import os
|
||||
from os.path import abspath, dirname
|
||||
from os.path import abspath, dirname, join
|
||||
import functools
|
||||
|
||||
test_dir = dirname(abspath(__file__))
|
||||
@@ -21,6 +21,11 @@ root_dir = dirname(test_dir)
|
||||
|
||||
sample_int = 1 # This is used in completion/imports.py
|
||||
|
||||
|
||||
def get_example_dir(name):
|
||||
return join(test_dir, 'examples', name)
|
||||
|
||||
|
||||
def cwd_at(path):
|
||||
"""
|
||||
Decorator to run function at `path`.
|
||||
|
||||
Reference in New Issue
Block a user