开发者

Writing python script for a Mac on a linux or windows machine

I wrote a python script for a friend to make a job task easier. Now her company开发者_开发问答 wants to pay me for another script (woot!). However she works on a Mac and I have only a Windows pc and an Ubuntu pc. While python is multi-platform, I ran into a problem with the first script that was only happening on her Mac. So is there a (hopefully free) way to emulate OS X on a Windows PC or Ubuntu, so I can test my script on a mac before hand, without having to give it to her and say 'ok this might work'.


As long as you stick to the common and POSIX/UNIX interfaces, it will work equally fine on both Ubuntu and OS X barring any deep magic. Since you haven't described the problem, that's the only advice that can be given.


Questions about OS emulators are probably better placed at http://superuser.com (but I'm pretty sure there isn't a free OS X emulator around).

What issues did you encounter? As long as you're not using OS-specific functions, you should be fine. Maybe some encoding issues (windows-1252 vs. UTF-8) could arise, but all of this is speculation until you describe your problem in greater detail.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜