diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2012-12-19 14:10:55 -0500 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2012-12-19 14:10:55 -0500 |
commit | 64e7516c91d9f2f7ca86928f8db00ca29f3eb544 (patch) | |
tree | b2eacbb36292918b48252b3ae69b7322272590ee /run/executable/executable.py | |
parent | 8a5da068956f9f428ed138d2cabbc712918d52e6 (diff) |
Bug fix
Diffstat (limited to 'run/executable/executable.py')
-rw-r--r-- | run/executable/executable.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/run/executable/executable.py b/run/executable/executable.py index 628f711..bc8edd7 100644 --- a/run/executable/executable.py +++ b/run/executable/executable.py | |||
@@ -16,7 +16,7 @@ class Executable(object): | |||
16 | if extra_args is None: | 16 | if extra_args is None: |
17 | self.extra_args = None | 17 | self.extra_args = None |
18 | else: | 18 | else: |
19 | self.extra_args = list(extra_args) # make a duplicate | 19 | self.extra_args = [str(a) for a in list(extra_args)] # make a duplicate |
20 | 20 | ||
21 | if not is_executable(self.exec_file): | 21 | if not is_executable(self.exec_file): |
22 | raise Exception("Not executable ? : %s" % self.exec_file) | 22 | raise Exception("Not executable ? : %s" % self.exec_file) |
@@ -44,6 +44,7 @@ class Executable(object): | |||
44 | return full_command | 44 | return full_command |
45 | 45 | ||
46 | def __str__(self): | 46 | def __str__(self): |
47 | print("Full command: %s" % self.__get_full_command()) | ||
47 | return " ".join(self.__get_full_command()) | 48 | return " ".join(self.__get_full_command()) |
48 | 49 | ||
49 | def execute(self): | 50 | def execute(self): |