23 lines
483 B
JavaScript
23 lines
483 B
JavaScript
const Language = require('../struct/Language');
|
|
|
|
class Python extends Language {
|
|
constructor() {
|
|
super('python', {
|
|
aliases: ['python', 'py'],
|
|
loads: ['python3', 'python2'],
|
|
options: {
|
|
2: () => ''
|
|
}
|
|
});
|
|
}
|
|
|
|
runWith(options) {
|
|
if (options.has('2')) {
|
|
return { id: 'python2', env: {} };
|
|
}
|
|
|
|
return { id: 'python3', env: {} };
|
|
}
|
|
}
|
|
|
|
module.exports = Python;
|