Changeset 580:b7c432ce1b80


Ignore:
Timestamp:
04/10/11 13:06:50 (12 years ago)
Author:
Simon Cross <hodgestar@…>
Branch:
default
Phase:
public
Message:

Project against absences of file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • scripts/skaapsteker

    r31 r580  
    33import os.path
    44import sys
    5 sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))
     5
     6if '__file__' in globals():
     7    # protect against missing __file__ in Windows executable scripts
     8    # (in these cases, assume skaapsteker is already on the path)
     9    sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))
    610
    711import skaapsteker.__main__
Note: See TracChangeset for help on using the changeset viewer.