$OpenBSD: patch-spectrumctl_spectrum_spectrum_py,v 1.3 2011/03/07 10:14:01 sebastia Exp $ Import errno, to prevent error --- spectrumctl/spectrum/spectrum.py.orig Tue Dec 28 17:58:40 2010 +++ spectrumctl/spectrum/spectrum.py Mon Mar 7 09:24:57 2011 @@ -19,7 +19,7 @@ Represents a single spectrum instance, see L{spectrum.spectrum}. """ -import os, sys, pwd, stat, time, signal, resource +import os, sys, pwd, stat, time, signal, resource, errno from subprocess import call, Popen, PIPE, STDOUT import spectrumconfigparser, config_interface, env from ExistsError import ExistsError @@ -56,7 +56,7 @@ class spectrum: try: return os.environ['SPECTRUM_PATH'] except KeyError: - return 'spectrum' + return '${TRUEPREFIX}/sbin/spectrum' def get_jid( self ): """