freebsd-ports/sysutils/py-zfs/files/compile.py.in
Martin Matuska 430df3ca3c The Python ZFS library is a Python interface to ZFS functions.
Since ZFS v15, the following functionality of the "zfs" command
requires this port installed:

zfs allow
zfs unallow
zfs userspace
zfs groupspace
2010-07-11 10:16:10 +00:00

12 lines
187 B
Python

#!%%PYTHON_CMD%%
import sys
import compileall
import sys
try:
sys.argv[1]
except IndexError:
print "Path missing"
else:
compileall.compile_dir(sys.argv[1], force=True)