master
Marcus 2018-10-30 20:19:30 -04:00
parent 0fb1c80a28
commit adefc7bfc5
2 changed files with 6 additions and 5 deletions

View File

@ -1,12 +1,12 @@
{
"name": "portapy",
"version": "0.0.1",
"version": "0.0.2",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"postinstall": "node postinstall.js",
"uninstall": "node uninstall.js"
"preuninstall": "node uninstall.js"
},
"bin": {
"python": "bin/python.js"

View File

@ -1,5 +1,6 @@
const path = require('path');
let pythonPath = path.resolve(__dirname, 'Python', 'python.exe');
require('child_process').exec(`${pythonPath} /passive /uninstall`);
let pythonPath = path.resolve(__dirname, 'Python-Installer', 'python-3.7.1.exe');
require('child_process').execSync(`${pythonPath} /passive /uninstall`, {
stdio: 'inherit'
});