Beispiel #1
0
    def __init__(self, cwd=None):
        """
        Initialize the environment. The optional argument is the path to the
        reference directory for compilation, by default it is the current
        working directory.
        """
        self.kpse_msg = {
            "mktextfm": _("making font metrics for \\g<arg>"),
            "mktexmf": _("making font \\g<arg>"),
            "mktexpk": _("making bitmap for font \\g<arg>")
        }

        if cwd is None: cwd = os.getcwd()
        self.vars = Variables(items={'cwd': cwd, '_environment': self})
        self.path = [cwd]
        self.conv_prefs = {}

        # Represents a set of dependency nodes. Nodes can be accessed by absolute
        # path name using the dictionary interface.
        self.depends = dict()
        self.converter = Converter(self.depends)
        self.converter.read_ini(os.path.join(moddir, 'rules.ini'))

        self.is_in_unsafe_mode_ = False
        self.doc_requires_shell_ = False
        self.main = None
        self.final = None
Beispiel #2
0
    def __init__(self):
        """
        Initialize the environment. The optional argument is the path to the
        reference directory for compilation, by default it is the current
        working directory.
        """
        self.path = [os.path.curdir]
        self.conv_prefs = {}
        self.converter = Converter(self)
        self.converter.read_ini(os.path.join(rubber.__path__[0], 'rules.ini'))

        self.doc_requires_shell_ = False
        self.synctex = False
        self.main = None
        self.final = None
        self.graphics_suffixes = []
Beispiel #3
0
    def __init__(self, cwd=None):
        """
		Initialize the environment. The optional argument is the path to the
		reference directory for compilation, by default it is the current
		working directory.
		"""
        if cwd is None: cwd = os.getcwd()
        self.vars = Variables(items={'cwd': cwd, '_environment': self})
        self.path = [cwd]
        self.conv_prefs = {}

        # Represents a set of dependency nodes. Nodes can be accessed by absolute
        # path name using the dictionary interface.
        self.depends = dict()
        self.converter = Converter(self.depends)
        self.converter.read_ini(os.path.join(rubber.__path__[0], 'rules.ini'))

        self.doc_requires_shell_ = False
        self.synctex = False
        self.main = None
        self.final = None
Beispiel #4
0
	def __init__ (self, cwd=None):
		"""
		Initialize the environment. The optional argument is the path to the
		reference directory for compilation, by default it is the current
		working directory.
		"""
		self.kpse_msg = {
			"mktextfm" : _("making font metrics for \\g<arg>"),
			"mktexmf" : _("making font \\g<arg>"),
			"mktexpk" : _("making bitmap for font \\g<arg>")
			}

		if cwd is None: cwd = os.getcwd()
		self.vars = Variables(items = { 'cwd': cwd, '_environment': self })
		self.path = [cwd]
		self.conv_prefs = {}
		self.depends = rubber.depend.Set()
		self.converter = Converter(self.depends)
		self.converter.read_ini(os.path.join(moddir, 'rules.ini'))
		
		self.main = None
		self.final = None