##// END OF EJS Templates
Don't hardcode posix paths in nbconvert...
MinRK -
Show More
@@ -93,11 +93,11 b' class Exporter(Configurable):'
93 )
93 )
94
94
95 template_path = Unicode(
95 template_path = Unicode(
96 "/../templates/", config=True,
96 os.path.join("..", "templates"), config=True,
97 help="Path where the template files are located.")
97 help="Path where the template files are located.")
98
98
99 template_skeleton_path = Unicode(
99 template_skeleton_path = Unicode(
100 "/../templates/skeleton/", config=True,
100 os.path.join("..", "templates", "skeleton"), config=True,
101 help="Path where the template skeleton files are located.")
101 help="Path where the template skeleton files are located.")
102
102
103 #Jinja block definitions
103 #Jinja block definitions
@@ -288,11 +288,11 b' class Exporter(Configurable):'
288 """
288 """
289 Create the Jinja templating environment.
289 Create the Jinja templating environment.
290 """
290 """
291
291 here = os.path.realpath(__file__)
292 self.environment = Environment(
292 self.environment = Environment(
293 loader=FileSystemLoader([
293 loader=FileSystemLoader([
294 os.path.dirname(os.path.realpath(__file__)) + self.template_path,
294 os.path.join(here, self.template_path),
295 os.path.dirname(os.path.realpath(__file__)) + self.template_skeleton_path,
295 os.path.join(here, self.template_skeleton_path),
296 ]),
296 ]),
297 extensions=JINJA_EXTENSIONS
297 extensions=JINJA_EXTENSIONS
298 )
298 )
General Comments 0
You need to be logged in to leave comments. Login now