Mercurial > skaapsteker
view scripts/skaapsteker @ 580:b7c432ce1b80
Project against absences of __file__.
author | Simon Cross <hodgestar@gmail.com> |
---|---|
date | Sun, 10 Apr 2011 15:06:50 +0200 |
parents | 6f1e43d2fda8 |
children |
line wrap: on
line source
#!/usr/bin/env python import os.path import sys if '__file__' in globals(): # protect against missing __file__ in Windows executable scripts # (in these cases, assume skaapsteker is already on the path) sys.path.insert(0, os.path.dirname(os.path.dirname(__file__))) import skaapsteker.__main__ if __name__ == "__main__": skaapsteker.__main__.main()