head     1.1;
branch   1.1.1;
access   ;
symbols  start:1.1.1.1 nabugoon:1.1.1;
locks    ; strict;
comment  @# @;


1.1
date     2003.11.29.16.38.39;  author nabugoon;  state Exp;
branches 1.1.1.1;
next     ;

1.1.1.1
date     2003.11.29.16.38.39;  author nabugoon;  state Exp;
branches ;
next     ;


desc
@@



1.1
log
@Initial revision
@
text
@#!/usr/bin/env python

import signal
import os
import sys

def find_pydic_lib():
	for d in sys.path:
		sd = os.path.join(d, 'pydic')
		if os.path.isdir(sd):
			return sd
	h, t = os.path.split(os.path.split(os.path.abspath(sys.argv[0]))[0])
	if t == 'bin':
		libdir = os.path.join(h, 'lib')
		fp = os.path.join(libdir, 'pydic')
		if os.path.isdir(fp):
			return libdir
	
	raise "FileNotFoundError", "couldn't find pydic library dir"

sys.path.insert(0, find_pydic_lib())

import pydic
pydic.Main()
@


1.1.1.1
log
@import
@
text
@@
