# or implied, of GRNET S.A.
import sys
-import pbs
+import sh
import hashlib
search_paths = ['/usr/local/sbin', '/usr/sbin', '/sbin']
for fullpath in map(lambda x: "%s/%s" % (x, command), search_paths):
if os.path.exists(fullpath) and os.access(fullpath, os.X_OK):
- return pbs.Command(fullpath)
+ return sh.Command(fullpath)
raise exception
try:
- return pbs.__getattr__(command)
- except pbs.CommadNotFount as e:
+ return sh.__getattr__(command)
+ except sh.CommadNotFount as e:
return find_sbin_command(command, e)
license='BSD',
packages=find_packages(),
include_package_data=True,
- install_requires=['pbs', 'ansicolors', 'progress>=1.0.2', 'pysendfile'],
+ install_requires=['sh', 'ansicolors', 'progress>=1.0.2', 'pysendfile'],
entry_points={
'console_scripts': [
'snf-image-creator = image_creator.main:main',