Browse Source

Merge pull request #3 from Salil03/patch-1

Update gwen.ts
Marcelo Fornet 5 years ago
parent
commit
9cc435d5da
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/gwen.ts

+ 2 - 2
src/gwen.ts

@@ -7,7 +7,7 @@ const DEFAULT = 'import random\n\nprint(random.randint(1, 100))\n';
 
 export function create(problemPath: string, outputPath: string) {
     let tcPath = join(problemPath, TESTCASES);
-    let exitCode = spawnSync("python", ["-m", `tcgen`, "--path", `${tcPath}`, "--output", `${outputPath}`]);
+    let exitCode = spawnSync("python3", ["-m", `tcgen`, "--path", `${tcPath}`, "--output", `${outputPath}`]);
 
     console.log("exticode:", exitCode);
 
@@ -15,4 +15,4 @@ export function create(problemPath: string, outputPath: string) {
         let generator_fd = openSync(outputPath, 'w');
         writeSync(generator_fd, DEFAULT);
     }
-}
+}