Show More
@@ -151,12 +151,13 b' class Converter(object):' | |||
|
151 | 151 | def save(self, infile=None, encoding=None): |
|
152 | 152 | "read and parse notebook into self.nb" |
|
153 | 153 | if infile is None: |
|
154 |
|
|
|
154 | outfile = os.path.basename(self.infile) | |
|
155 | outfile = os.path.splitext(outfile)[0] + '.' + self.extension | |
|
155 | 156 | if encoding is None: |
|
156 | 157 | encoding = self.default_encoding |
|
157 |
with open( |
|
|
158 | with open(outfile, 'w') as f: | |
|
158 | 159 | f.write(self.output.encode(encoding)) |
|
159 |
return |
|
|
160 | return os.path.abspath(outfile) | |
|
160 | 161 | |
|
161 | 162 | def optional_header(self): |
|
162 | 163 | return [] |
General Comments 0
You need to be logged in to leave comments.
Login now