File: exec

package info (click to toggle)
gaupol 0.7.1-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,336 kB
  • ctags: 2,320
  • sloc: python: 15,507; xml: 155; sh: 18; makefile: 6
file content (16 lines) | stat: -rwxr-xr-x 245 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env python

"""
Execute Python file.

Usage: exec PATH
"""

import os
import sys

TOOL_DIR = os.path.dirname(os.path.abspath(__file__))
LIB_DIR  = os.path.join(TOOL_DIR, '..', 'lib')
sys.path.insert(0, LIB_DIR)

execfile(sys.argv[1])