#!/usr/bin/env python
import os
import sys

if __name__ == "__main__":
    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "reimbursement.settings")
    sys.path.append(os.path.join(os.path.dirname(__file__),'reimbursement'))
    if not 'SERVER_SOFTWARE' in os.environ: # sae
        root = os.path.dirname(__file__)
        sys.path.insert(0, os.path.join(root, 'site-packages'))
        
    from django.core.management import execute_from_command_line

    execute_from_command_line(sys.argv)
