mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-11 06:09:17 +00:00
adding subprocess compatibility for python < 3.5
This commit is contained in:
@@ -18,7 +18,7 @@ class Action:
|
|||||||
def execute(self):
|
def execute(self):
|
||||||
self.log.sub('executing \"%s\"' % (self.action))
|
self.log.sub('executing \"%s\"' % (self.action))
|
||||||
try:
|
try:
|
||||||
subprocess.run(self.action, shell=True)
|
subprocess.call(self.action, shell=True)
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
self.log.warn('action interrupted')
|
self.log.warn('action interrupted')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user