Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"version": "5.1.0-preview.1",
"description": "The Python extension for generators in AutoRest.",
"scripts": {
"prepare": "python prepare.py",
"start": "python start.py",
"install": "python install.py"
"prepare": "node run-python3.js prepare.py",
"start": "node run-python3.js start.py",
"install": "node run-python3.js install.py"
},
"repository": {
"type": "git",
Expand All @@ -22,9 +22,11 @@
"url": "https://github.com/Azure/autorest.python/issues"
},
"homepage": "https://github.com/Azure/autorest.python/blob/autorestv3/README.md",
"dependencies": {
"@azure-tools/extension": "^3.0.249"
},
"devDependencies": {
"@autorest/autorest": "^3.0.0",
"@azure-tools/extension": "^3.0.249",
"@microsoft.azure/autorest.testserver": "2.10.42"
},
"files": [
Expand Down
4 changes: 3 additions & 1 deletion run-python3.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ const extension = require("@azure-tools/extension");
async function runPython3(scriptName) {
const command = ["python"];
await extension.updatePythonPath(command);
cp.execSync(command[0] + " " + scriptName);
cp.execSync(command[0] + " " + scriptName, {
stdio: [0, 1, 2]
});
}

runPython3(process.argv[2]).catch(err => {
Expand Down