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

import os
import os.path
import sys

if __name__ == '__main__':
    # following line needed at Logilab cause of weird behaviours...
#     print "WATCH OUT, stdout == stderr (logilab env)"
#     sys.stderr =  sys.stdout
    # Adjust path
    current_file = sys.argv[0]
    current_path = os.path.normcase(os.path.dirname(os.path.abspath(current_file)))
    os.chdir(current_path)
    if not current_path in sys.path:
        sys.path.insert(0, current_path)
    # Launch
    from solipsis.navigator.wxclient import main
    main.main()
#!/usr/bin/python
import os,sys
from solipsis.navigator.wxclient.main import main

# add current directory to the python search path
# it is needed in case solipsis is not installed in the standard python
# directory (e.g: /usr/lib/python2.3 in linux)

currentDir = sys.path[0]
if os.environ.has_key('PYTHONPATH'):
    os.environ['PYTHONPATH'] = os.environ['PYTHONPATH'] + ':' + currentDir
else:
    os.environ['PYTHONPATH'] = currentDir

if __name__ == '__main__':
    main()