Modified python scripts to support both python2.7 and python3 natively
This commit is contained in:
parent
eb3f57ce34
commit
3351bfce2f
8 changed files with 58 additions and 30 deletions
scripts/devSetup
|
@ -1,3 +1,4 @@
|
|||
from __future__ import print_function
|
||||
__author__ = u'root'
|
||||
|
||||
import dependency
|
||||
|
@ -18,7 +19,7 @@ class Ruby(dependency.Dependency):
|
|||
elif not is_ruby_installed:
|
||||
self.install_ruby()
|
||||
elif is_ruby_installed and is_gem_installed:
|
||||
print u"Ruby found."
|
||||
print(u"Ruby found.")
|
||||
def check_if_ruby_exists(self):
|
||||
ruby_path = which(u"ruby")
|
||||
return bool(ruby_path)
|
||||
|
@ -38,4 +39,4 @@ class Ruby(dependency.Dependency):
|
|||
raise NotImplementedError
|
||||
|
||||
def install_gems(self):
|
||||
gem_install_status = subprocess.call([u"gem",u"install",u"sass"])
|
||||
gem_install_status = subprocess.call([u"gem",u"install",u"sass"])
|
||||
|
|
Reference in a new issue