mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-24 03:33:06 +01:00
Add python to compiler_vm languages
This commit is contained in:
parent
5e2cd4fd22
commit
a41906d323
18
modules/compiler_vm/languages/python.pm
Executable file
18
modules/compiler_vm/languages/python.pm
Executable file
@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env perl
|
||||
|
||||
use warnings;
|
||||
use strict;
|
||||
|
||||
package python;
|
||||
use parent '_default';
|
||||
|
||||
sub initialize {
|
||||
my ($self, %conf) = @_;
|
||||
|
||||
$self->{sourcefile} = 'prog.py';
|
||||
$self->{execfile} = 'prog.py';
|
||||
$self->{default_options} = '';
|
||||
$self->{cmdline} = 'python $options $sourcefile';
|
||||
}
|
||||
|
||||
1;
|
Loading…
Reference in New Issue
Block a user