示例#1
0
	def defaultPDFToImageCommand():
		if PreferencesModel.DEFAULT_PDF_TO_IMAGE_COMMAND is None:
			if isMacintoshComputer():
				sips_path = findCommandLocation(defaults.DEFAULT_MAC_PDF_TO_IMAGE_COMMAND)
				PreferencesModel.DEFAULT_PDF_TO_IMAGE_COMMAND = defaults.DEFAULT_MAC_PDF_TO_IMAGE_ARGS % sips_path
			else:
				convert_path = findCommandLocation(defaults.DEFAULT_PDF_TO_IMAGE_COMMAND)
				PreferencesModel.DEFAULT_PDF_TO_IMAGE_COMMAND = defaults.DEFAULT_PDF_TO_IMAGE_ARGS % convert_path
		return PreferencesModel.DEFAULT_PDF_TO_IMAGE_COMMAND
示例#2
0
	def defaultPDFToImageCommand():
		if PreferencesModel.DEFAULT_PDF_TO_IMAGE_COMMAND is None:
			if isMacintoshComputer():
				sips_path = findCommandLocation(defaults.DEFAULT_MAC_PDF_TO_IMAGE_COMMAND)
				PreferencesModel.DEFAULT_PDF_TO_IMAGE_COMMAND = defaults.DEFAULT_MAC_PDF_TO_IMAGE_ARGS % sips_path
			else:
				convert_path = findCommandLocation(defaults.DEFAULT_PDF_TO_IMAGE_COMMAND)
				PreferencesModel.DEFAULT_PDF_TO_IMAGE_COMMAND = defaults.DEFAULT_PDF_TO_IMAGE_ARGS % convert_path
		return PreferencesModel.DEFAULT_PDF_TO_IMAGE_COMMAND
示例#3
0
 def defaultLatexToPDFCommand():
     if PreferencesModel.DEFAULT_LATEX_TO_PDF_COMMAND is None:
         pdflatex_path = findCommandLocation(
             defaults.DEFAULT_LATEX_TO_PDF_COMMAND)
         PreferencesModel.DEFAULT_LATEX_TO_PDF_COMMAND = defaults.DEFAULT_LATEX_TO_PDF_ARGS % pdflatex_path
     return PreferencesModel.DEFAULT_LATEX_TO_PDF_COMMAND
示例#4
0
	def defaultLatexToPDFCommand():
		if PreferencesModel.DEFAULT_LATEX_TO_PDF_COMMAND is None:
			pdflatex_path = findCommandLocation(defaults.DEFAULT_LATEX_TO_PDF_COMMAND)
		 	PreferencesModel.DEFAULT_LATEX_TO_PDF_COMMAND = defaults.DEFAULT_LATEX_TO_PDF_ARGS % pdflatex_path
		return PreferencesModel.DEFAULT_LATEX_TO_PDF_COMMAND