Lines Matching defs:path
16 the path name and allows to include files from arbitrary locations.
34 import os.path
62 path = os.path.realpath(
63 os.path.expandvars(self.arguments[0]))
66 if path.startswith(os.sep + "etc"):
68 'Problems with "%s" directive, prohibited path: %s'
69 % (self.name, path))
71 self.arguments[0] = path
88 source_dir = os.path.dirname(os.path.abspath(source))
89 path = directives.path(self.arguments[0])
90 if path.startswith('<') and path.endswith('>'):
91 path = os.path.join(self.standard_include_path, path[1:-1])
92 path = os.path.normpath(os.path.join(source_dir, path))
95 #path = utils.relative_path(None, path)
97 path = nodes.reprunicode(path)
104 self.state.document.settings.record_dependencies.add(path)
105 include_file = io.FileInput(source_path=path,
109 raise self.severe('Problems with "%s" directive path:\n'
110 'Cannot encode input file path "%s" '
112 (self.name, SafeString(path)))
114 raise self.severe('Problems with "%s" directive path:\n%s.' %
154 literal_block = nodes.literal_block(rawtext, source=path,
178 self.options['source'] = path
189 self.state_machine.insert_input(include_lines, path)