n1k0 / landslide

An HTML5 slideshow generator based on Markdown or reStructuredText
Apache License 2.0
172 stars 20 forks source link

Error in destination_file argument #15

Closed leblanc-simon closed 13 years ago

leblanc-simon commented 13 years ago

certainly due to a wring copy / paste, the self.destination_file get direct argument, it must be get destination_file

Error before commit, when I launch the command (python main.py -i -v --destination=1303216520.16.md.html 1303216520.16.md) is : Traceback (most recent call last): File "/home/simon.leblanc/www/slide/slides/main.py", line 162, in main() File "/home/simon.leblanc/www/slide/slides/main.py", line 155, in main run(input_file, options) File "/home/simon.leblanc/www/slide/slides/main.py", line 142, in run generator = Generator(input_file, options.dict) File "/home/simon.leblanc/www/slide/slides/generator.py", line 114, in init** if (os.path.exists(self.destination_file) File "/usr/lib/python2.5/posixpath.py", line 171, in exists st = os.stat(path) TypeError: coercing to Unicode: need string or buffer, bool found

This commit fix this error

n1k0 commented 13 years ago
Yup, thank you!