#!/usr/bin/env python

### PNFS Preamble
# This makes sure that users don't have to set up their environment
# specially in order to run these programs from bin/.
import sys, os, string

if string.find(os.path.abspath(sys.argv[0]), os.sep + 'pnfs') != -1:
	sys.path.insert(0, os.path.normpath(os.path.join(os.path.abspath(sys.argv[0]), os.pardir)))
if hasattr(os, "getuid") and os.getuid() != 0:
	sys.path.insert(0, os.path.abspath(os.getcwd()))
### end of preamble

# start application
from pn.fs.run import run
run()