handle-subprojects-cache.py: Fix shebang
authorXavier Claessens <xavier.claessens@collabora.com>
Mon, 4 Oct 2021 23:59:58 +0000 (19:59 -0400)
committerXavier Claessens <xavier.claessens@collabora.com>
Tue, 5 Oct 2021 00:00:40 +0000 (20:00 -0400)
ci/scripts/handle-subprojects-cache.py

index 3bec5bf..6281e09 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
 
 """
 Copies current subproject git repository to create a cache
@@ -14,6 +14,7 @@ PARSER = argparse.ArgumentParser()
 PARSER.add_argument('subprojects_dir')
 PARSER.add_argument('--build', action="store_true", default=False)
 
+
 def create_cache_in_image(options):
     os.makedirs(DEST, exist_ok=True)
     print("Creating cache from %s" % options.subprojects_dir)
@@ -28,7 +29,8 @@ def create_cache_in_image(options):
 
 
 def copy_cache(options):
-    for path in [DEST, "/gst-build/subprojects", r"C:\gst-build\subprojects"]: # FIXME Remove when not needed anymore.
+    # FIXME Remove when not needed anymore.
+    for path in [DEST, "/gst-build/subprojects", r"C:\gst-build\subprojects"]:
         if not os.path.exists(path):
             print("%s doesn't exist." % path)
             continue
@@ -55,4 +57,4 @@ if __name__ == "__main__":
     if options.build:
         create_cache_in_image(options)
     else:
-        copy_cache(options)
\ No newline at end of file
+        copy_cache(options)