Syntax highlighting in my application works fine if the module I try to use is a standard module or I don't use any modules.
However, trying to use my own modules does not provide highlighting.
My module called TestModule.py
# Automation Script 'new script 1'
def hello():
print 'Hello World.'
here is my main script:
# Automation Script 'new script 1'
import TestModule
from TestModule import *hello()
Here is my initialization code wheer I set search paths:
// Configure the Python Language Project and set the search paths
myPythonProject = myPythonSyntaxLanguage.GetService<IProject>();
myPythonProject.SearchPaths.Add(ironPythonLibrariesPath);
myPythonProject.SearchPaths.Add(@"C:\PythonTestLibs");
Shouldn't hello() show up as highlighted? Shouldn't typing 'he' and then ctrl-space bring up a list of functions including 'hello'?
If I place the def in the same file as:
# Automation Script 'new script 1'
def hello():
print 'Hello World.'he
when I hit ctrl-space, hello is in he list. But not from a module.