Lines Matching defs:path
16 the path name and allows to include files from arbitrary locations.
34 import os.path
63 path = os.path.realpath(
64 os.path.expandvars(self.arguments[0]))
67 if path.startswith(os.sep + "etc"):
69 'Problems with "%s" directive, prohibited path: %s'
70 % (self.name, path))
72 self.arguments[0] = path
74 env.note_dependency(os.path.abspath(path))
91 source_dir = os.path.dirname(os.path.abspath(source))
92 path = directives.path(self.arguments[0])
93 if path.startswith('<') and path.endswith('>'):
94 path = os.path.join(self.standard_include_path, path[1:-1])
95 path = os.path.normpath(os.path.join(source_dir, path))
98 #path = utils.relative_path(None, path)
100 path = nodes.reprunicode(path)
107 self.state.document.settings.record_dependencies.add(path)
108 include_file = io.FileInput(source_path=path,
112 raise self.severe('Problems with "%s" directive path:\n'
113 'Cannot encode input file path "%s" '
115 (self.name, SafeString(path)))
117 raise self.severe('Problems with "%s" directive path:\n%s.' %
157 literal_block = nodes.literal_block(rawtext, source=path,
181 self.options['source'] = path
192 self.state_machine.insert_input(include_lines, path)