|
|
|
@ -13,7 +13,7 @@ namespace ICSharpCode.PythonBinding |
|
|
|
{ |
|
|
|
{ |
|
|
|
public class PythonConsoleApplication |
|
|
|
public class PythonConsoleApplication |
|
|
|
{ |
|
|
|
{ |
|
|
|
string fileName = String.Empty; |
|
|
|
PythonAddInOptions options; |
|
|
|
StringBuilder arguments; |
|
|
|
StringBuilder arguments; |
|
|
|
bool debug; |
|
|
|
bool debug; |
|
|
|
string pythonScriptFileName = String.Empty; |
|
|
|
string pythonScriptFileName = String.Empty; |
|
|
|
@ -21,17 +21,12 @@ namespace ICSharpCode.PythonBinding |
|
|
|
string workingDirectory = String.Empty; |
|
|
|
string workingDirectory = String.Empty; |
|
|
|
|
|
|
|
|
|
|
|
public PythonConsoleApplication(PythonAddInOptions options) |
|
|
|
public PythonConsoleApplication(PythonAddInOptions options) |
|
|
|
: this(options.PythonFileName) |
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
} |
|
|
|
this.options = options; |
|
|
|
|
|
|
|
|
|
|
|
public PythonConsoleApplication(string fileName) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
this.fileName = fileName; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public string FileName { |
|
|
|
public string FileName { |
|
|
|
get { return fileName; } |
|
|
|
get { return options.PythonFileName; } |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public bool Debug { |
|
|
|
public bool Debug { |
|
|
|
@ -57,7 +52,7 @@ namespace ICSharpCode.PythonBinding |
|
|
|
public ProcessStartInfo GetProcessStartInfo() |
|
|
|
public ProcessStartInfo GetProcessStartInfo() |
|
|
|
{ |
|
|
|
{ |
|
|
|
ProcessStartInfo processStartInfo = new ProcessStartInfo(); |
|
|
|
ProcessStartInfo processStartInfo = new ProcessStartInfo(); |
|
|
|
processStartInfo.FileName = fileName; |
|
|
|
processStartInfo.FileName = FileName; |
|
|
|
processStartInfo.Arguments = GetArguments(); |
|
|
|
processStartInfo.Arguments = GetArguments(); |
|
|
|
processStartInfo.WorkingDirectory = workingDirectory; |
|
|
|
processStartInfo.WorkingDirectory = workingDirectory; |
|
|
|
return processStartInfo; |
|
|
|
return processStartInfo; |
|
|
|
|