@@ -200,16 +200,27 @@ private static bool BuildNexFile(byte[] binary, ZXBuildSettings settings, ZXProj
200200
201201 outputLogWritter . WriteLine ( "Building .nex file..." ) ;
202202 Process process = new Process ( ) ;
203- process . StartInfo . FileName = "python.exe" ;
204- process . StartInfo . Arguments = string . Format ( "{0} nex.cfg {1}" ,
205- Path . Combine ( Path . GetDirectoryName ( ZXOptions . Current . ZxbcPath ) , "tools" , "nextcreator.py" ) ,
206- Path . GetFileNameWithoutExtension ( settings . MainFile ) + ".nex" ) ;
207- process . StartInfo . WorkingDirectory = project . ProjectPath ;
208- process . StartInfo . UseShellExecute = false ;
209- process . StartInfo . CreateNoWindow = true ;
210- process . StartInfo . RedirectStandardOutput = true ;
203+ if ( Environment . OSVersion . Platform == PlatformID . Win32NT )
204+ {
205+ process . StartInfo . FileName = "python" ;
206+ process . StartInfo . Arguments = string . Format ( "{0} nex.cfg {1}" ,
207+ Path . Combine ( Path . GetDirectoryName ( ZXOptions . Current . ZxbcPath ) , "tools" , "nextcreator.py" ) ,
208+ Path . GetFileNameWithoutExtension ( settings . MainFile ) + ".nex" ) ;
209+ process . StartInfo . WorkingDirectory = project . ProjectPath ;
210+ process . StartInfo . UseShellExecute = false ;
211+ process . StartInfo . CreateNoWindow = true ;
212+ process . StartInfo . RedirectStandardOutput = true ;
213+ }
214+ else
215+ {
216+ process . StartInfo . FileName = Path . Combine ( Path . GetDirectoryName ( ZXOptions . Current . ZxbcPath ) , "tools" , "nextcreator.py" ) ;
217+ process . StartInfo . Arguments = "nex.cfg " + Path . GetFileNameWithoutExtension ( settings . MainFile ) + ".nex" ;
218+ process . StartInfo . WorkingDirectory = project . ProjectPath ;
219+ process . StartInfo . UseShellExecute = false ;
220+ process . StartInfo . CreateNoWindow = true ;
221+ process . StartInfo . RedirectStandardOutput = true ;
222+ }
211223 process . Start ( ) ;
212-
213224 process . WaitForExit ( ) ;
214225
215226 if ( ! File . Exists ( nexFile ) )
0 commit comments