throws Exception
{
String file = commandLine.getValue(Options.FILE_OPTION);
String projectName = commandLine.getValue(Options.PROJECT_OPTION);
IProject project = ProjectUtils.getProject(projectName);
PythonNature nature = PythonNature.getPythonNature(project);
// only refresh the file.
if(!commandLine.hasOption(Options.VALIDATE_OPTION) || nature == null){
// getting the file will refresh it.
ProjectUtils.getFile(project, file);
// validate the src file.
}else{
String filePath = ProjectUtils.getFilePath(project, file);
String moduleName = nature.resolveModule(filePath);
IDocument document = ProjectUtils.getDocument(project, file);
// NOTE: checkForPath is false to support python files w/ file extenstion
// != .py (like twisted .tac files for example)
SourceModule module = (SourceModule)AbstractModule.createModuleFromDoc(