[gnome-maps/wip/mlundblad/es6-modules: 2/22] scripts/extractPoiTypesFromID: Use ES6 modules
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/mlundblad/es6-modules: 2/22] scripts/extractPoiTypesFromID: Use ES6 modules
- Date: Sun, 5 Jun 2022 20:37:33 +0000 (UTC)
commit 3650f51ff175fcbe2346d852167698a1b5664ab5
Author: Marcus Lundblad <ml dfupdate se>
Date: Sun May 22 22:03:39 2022 +0200
scripts/extractPoiTypesFromID: Use ES6 modules
scripts/extractPoiTypesFromID.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/scripts/extractPoiTypesFromID.js b/scripts/extractPoiTypesFromID.js
index 031e9aed..4ef45fb4 100755
--- a/scripts/extractPoiTypesFromID.js
+++ b/scripts/extractPoiTypesFromID.js
@@ -1,4 +1,4 @@
-#!/usr/bin/env gjs
+#!/usr/bin/env -S gjs -m
/* -*- Mode: JS2; indent-tabs-mode: nil; js2-basic-offset: 4 -*- */
/* vim: set et ts=4 sw=4: */
@@ -29,7 +29,7 @@
*
*/
-const Gio = imports.gi.Gio;
+import Gio from 'gi://Gio';
const ByteArray = imports.byteArray;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]