Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in suicide test: input file = output file #110

Closed
GoogleCodeExporter opened this issue Apr 18, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

@GoogleCodeExporter GoogleCodeExporter commented Apr 18, 2015

At the end of ConfigMaster.sanity() there's a check that's not working:

        # Checking suicide
        if config['sourcefile'] == config['outfile'] and \
           config['outfile'] not in [STDOUT, MODULEOUT] and not gui:
            Error(_("Input and Output files are the same: %s") % config['outfile'])

See:

$ txt2tags -t html -i sample.t2t -o sample.t2t 
txt2tags wrote /a/txt2tags/svn/samples/sample.t2t
$

This should never happen. I guess it's because paths.

Original issue reported on code.google.com by aureliojargas@gmail.com on 22 Dec 2010 at 11:04

@GoogleCodeExporter

This comment has been minimized.

Copy link
Author

@GoogleCodeExporter GoogleCodeExporter commented Apr 18, 2015

Fixed in r642 (python has a function for absolute paths)

Original comment by jamisee...@gmail.com on 22 Dec 2010 at 4:11

  • Changed state: Fixed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.