@basthon/kernel-python3 0.36.2 → 0.36.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/kernel.d.ts CHANGED
@@ -20,7 +20,7 @@ export declare class KernelPython3 extends KernelBase {
20
20
  /**
21
21
  * Get the URL of Basthon modules dir.
22
22
  */
23
- basthonModulesRoot(): string;
23
+ basthonModulesRoot(absolute?: boolean): string;
24
24
  language(): string;
25
25
  languageName(): string;
26
26
  moduleExts(): string[];
package/lib/kernel.js CHANGED
@@ -15,14 +15,12 @@ export class KernelPython3 extends KernelBase {
15
15
  /**
16
16
  * Get the URL of Basthon modules dir.
17
17
  */
18
- basthonModulesRoot() { return this.basthonRoot() + "/modules"; }
19
- ;
18
+ basthonModulesRoot(absolute = false) {
19
+ return this.basthonRoot(absolute) + "/modules";
20
+ }
20
21
  language() { return "python3"; }
21
- ;
22
22
  languageName() { return "Python 3"; }
23
- ;
24
23
  moduleExts() { return ['py']; }
25
- ;
26
24
  /**
27
25
  * What to do when loaded (private).
28
26
  */
@@ -34,7 +32,7 @@ export class KernelPython3 extends KernelBase {
34
32
  // but can be removed with 0.17.0 since it is fixed upstream
35
33
  const consoleErrorBck = console.error;
36
34
  console.error = () => { };
37
- await pyodide.loadPackage(this.basthonRoot() + "/basthon.js");
35
+ await pyodide.loadPackage(this.basthonRoot(true) + "/basthon.js");
38
36
  console.error = consoleErrorBck;
39
37
  // importing basthon to get it's kernel
40
38
  await pyodide.runPythonAsync("import basthon as __basthon__");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@basthon/kernel-python3",
3
- "version": "0.36.2",
3
+ "version": "0.36.6",
4
4
  "description": "Basthon - Python3 Kernel",
5
5
  "homepage": "https://basthon.fr",
6
6
  "bugs": {
@@ -25,7 +25,7 @@
25
25
  "clean": "make clean"
26
26
  },
27
27
  "dependencies": {
28
- "@basthon/kernel-base": "^0.36.2"
28
+ "@basthon/kernel-base": "^0.36.6"
29
29
  },
30
30
  "devDependencies": {
31
31
  "gulp": "^4.0.2",
@@ -40,5 +40,5 @@
40
40
  "publishConfig": {
41
41
  "access": "public"
42
42
  },
43
- "gitHead": "8fe755fb31a810261ca52b797c491dea633c17a9"
43
+ "gitHead": "fb7ba80accf982becc0fd5f5d64e09b4e4c2096c"
44
44
  }