Download this file
17 lines (10 with data), 342 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 | <?php
require_once __DIR__.'/python.eval.php';
class lang_python_execfile extends lang_python_eval {
public static $__file__;
public static function python_execfile($file,$endmarker=true) {
static::$__file__ = $file;
$code = file_get_contents($file);
static::python_eval($code,$file,$endmarker);
}
}
|
×
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.