/* * mongo-edu * * Copyright (c) 2014 Przemyslaw Pluta * Licensed under the MIT license. * https://github.com/przemyslawpluta/mongo-edu/blob/master/LICENSE */ var mv = require('mv'), fs = require('fs'), path = require('path'); var isWin = /^win/.test(process.platform); if (isWin) { var target = path.resolve(__dirname + '../' + '../node_modules/youtube-dl/lib/youtube-dl.js'); fs.unlink(target, function (err) { 'use strict'; if (err !== null) { return console.log(err.stack); } mv(path.resolve(__dirname + '../' + '../.temp/youtube-dl.js'), target, function error(err) { if (err) { console.log(err); } console.log('win py3.x fix'); }); }); }