本文整理匯總了Python中sextante.grass.GrassUtils.GrassUtils.grassHelpPath方法的典型用法代碼示例。如果您正苦於以下問題:Python GrassUtils.grassHelpPath方法的具體用法?Python GrassUtils.grassHelpPath怎麽用?Python GrassUtils.grassHelpPath使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類sextante.grass.GrassUtils.GrassUtils
的用法示例。
在下文中一共展示了GrassUtils.grassHelpPath方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: helpFile
# 需要導入模塊: from sextante.grass.GrassUtils import GrassUtils [as 別名]
# 或者: from sextante.grass.GrassUtils.GrassUtils import grassHelpPath [as 別名]
def helpFile(self):
folder = GrassUtils.grassHelpPath()
helpfile = str(folder) + os.sep + self.grassName + ".html"
if os.path.exists(helpfile):
return helpfile
else:
raise WrongHelpFileException("Grass help folder is not correctly configured.\nPlease configure it")
示例2: initializeSettings
# 需要導入模塊: from sextante.grass.GrassUtils import GrassUtils [as 別名]
# 或者: from sextante.grass.GrassUtils.GrassUtils import grassHelpPath [as 別名]
def initializeSettings(self):
AlgorithmProvider.initializeSettings(self)
if SextanteUtils.isWindows() or SextanteUtils.isMac():
SextanteConfig.addSetting(Setting(self.getDescription(), GrassUtils.GRASS_FOLDER, "GRASS folder", GrassUtils.grassPath()))
SextanteConfig.addSetting(Setting(self.getDescription(), GrassUtils.GRASS_WIN_SHELL, "Msys folder", GrassUtils.grassWinShell()))
SextanteConfig.addSetting(Setting(self.getDescription(), GrassUtils.GRASS_LOG_COMMANDS, "Log execution commands", False))
SextanteConfig.addSetting(Setting(self.getDescription(), GrassUtils.GRASS_LOG_CONSOLE, "Log console output", False))
SextanteConfig.addSetting(Setting(self.getDescription(), GrassUtils.GRASS_LATLON, "Coordinates are lat/lon", False))
SextanteConfig.addSetting(Setting(self.getDescription(), GrassUtils.GRASS_HELP_FOLDER, "GRASS help folder", GrassUtils.grassHelpPath()))