From 33ce9576276ec1c2688d6db7988cdf8916de07e2 Mon Sep 17 00:00:00 2001 From: sqlcoder Date: Sat, 23 Jan 2010 13:29:03 +0000 Subject: [PATCH] add run_fpdb.py file in top dir --- run_fpdb.py | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100755 run_fpdb.py diff --git a/run_fpdb.py b/run_fpdb.py new file mode 100755 index 00000000..a5c06952 --- /dev/null +++ b/run_fpdb.py @@ -0,0 +1,31 @@ +#!/usr/bin/python + +#Copyright 2008 Carl Gherardi +#This program is free software: you can redistribute it and/or modify +#it under the terms of the GNU Affero General Public License as published by +#the Free Software Foundation, version 3 of the License. +# +#This program is distributed in the hope that it will be useful, +#but WITHOUT ANY WARRANTY; without even the implied warranty of +#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +#GNU General Public License for more details. +# +#You should have received a copy of the GNU Affero General Public License +#along with this program. If not, see . +#In the "official" distribution you can find the license in +#agpl-3.0.txt in the docs folder of the package. + + +import os +import sys + +# sys.path[0] holds the dir run_fpdb.py was in +sys.path[0] = sys.path[0]+os.sep+"pyfpdb" + +import fpdb + + +if __name__ == "__main__": + me = fpdb.fpdb() + me.main() + exit()