how to make a python or perl script portable to both linux and windows?

Posted by Tim on Stack Overflow See other posts from Stack Overflow or by Tim
Published on 2010-06-11T04:53:39Z Indexed on 2010/06/11 5:02 UTC
Read the original article Hit count: 207

Filed under:
|
|
|
|

I was wondering how to make a python script portable to both linux and windows?

One problem I see is shebang. How to write the shebang so that the script can be run on both windows and linux?

Are there other problems besides shebang that I should know?

Is the solution same for perl script?

Thanks and regards!

© Stack Overflow or respective owner

Related posts about python

Related posts about perl