[gtk-mac-bundler: 1/12] Move runtest.py to top directory so that relative imports in bundler work.




commit b66747e8d424e8a46a18a1ffd384150403d2b693
Author: John Ralls <jralls ceridwen us>
Date:   Tue Jun 14 09:53:38 2022 -0700

    Move runtest.py to top directory so that relative imports in bundler work.

 bundler/runtest.py => runtest.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/bundler/runtest.py b/runtest.py
similarity index 86%
rename from bundler/runtest.py
rename to runtest.py
index 2450f2d..97aa0e7 100755
--- a/bundler/runtest.py
+++ b/runtest.py
@@ -1,4 +1,7 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
+if __name__ == "__main__" and __package__ is None:
+    __package__ = "bundler"
+
 import unittest
 import os
 from .project_test import Project_Test


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]