Skip to content

Instantly share code, notes, and snippets.

@sole
Created September 26, 2010 20:29
Show Gist options
  • Save sole/598296 to your computer and use it in GitHub Desktop.
Save sole/598296 to your computer and use it in GitHub Desktop.
make thumbpdf behave nicely when called from python
diff /usr/bin/thumbpdf /usr/bin/thumbpdf.bak
1c1,5
< #!/usr/bin/env perl
---
> eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' && eval 'exec perl -S $0 $argv:q'
> if 0;
> use strict;
> $^W=1; # turn warning on
> #
@sole
Copy link
Author

sole commented Sep 26, 2010

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment