10 from __future__ import unicode_literals |
10 from __future__ import unicode_literals |
11 |
11 |
12 import sys |
12 import sys |
13 import os |
13 import os |
14 |
14 |
|
15 try: |
|
16 str = unicode # __IGNORE_WARNING__ __IGNORE_EXCEPTION__ |
|
17 except NameError: |
|
18 pass |
|
19 |
15 sys.path.insert(0, os.path.dirname(__file__)) |
20 sys.path.insert(0, os.path.dirname(__file__)) |
16 if sys.version_info[0] >= 3: |
|
17 # TODO: unify this |
|
18 ## path = os.path.join(os.path.dirname(__file__), 'rope_py3') |
|
19 path = os.path.join(os.path.dirname(__file__), 'rope_py2') |
|
20 else: |
|
21 path = os.path.join(os.path.dirname(__file__), 'rope_py2') |
|
22 str = unicode # __IGNORE_WARNING__ |
|
23 sys.path.insert(0, path) |
|
24 |
21 |
25 import rope.base.libutils |
22 import rope.base.libutils |
26 import rope.contrib.codeassist |
23 import rope.contrib.codeassist |
27 from rope.base.exceptions import BadIdentifierError, ModuleSyntaxError |
24 from rope.base.exceptions import BadIdentifierError, ModuleSyntaxError |
28 |
25 |