X-Git-Url: http://git.vrable.net/?p=cumulus.git;a=blobdiff_plain;f=cumulus-util;h=ce80ff6dbeb3d119e92bb0d8f1028224e2df4835;hp=05043f10475cb10e438c446d8d183379ea26aaaf;hb=cb7620ebf655e86cfe8000bf0bac9269394b652e;hpb=eff3483101b31fad71ed936509865395ecc6cc3a diff --git a/cumulus-util b/cumulus-util index 05043f1..ce80ff6 100755 --- a/cumulus-util +++ b/cumulus-util @@ -4,6 +4,12 @@ import getpass, os, stat, sys, time from optparse import OptionParser + +# Automatically set Python path, based on script directory. This should be +# removed if the tools are properly installed somewhere. +script_directory = os.path.dirname(sys.argv[0]) +sys.path.append(os.path.join(script_directory, 'python')) + import cumulus # Compatibility