From b09ff54d3ba88cfcede02ac5a15a5f545f305397 Mon Sep 17 00:00:00 2001 From: Frank DeMarco Date: Mon, 5 Oct 2020 18:37:18 -0400 Subject: [PATCH] python3 hashbang --- .gitmodules | 3 --- OPEN-GAME | 13 ++----------- lib/pgfw | 1 - 3 files changed, 2 insertions(+), 15 deletions(-) delete mode 160000 lib/pgfw diff --git a/.gitmodules b/.gitmodules index 66a83be..e69de29 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +0,0 @@ -[submodule "lib/pgfw"] - path = lib/pgfw - url = makar:/var/www/git/pgfw diff --git a/OPEN-GAME b/OPEN-GAME index 39f0315..edc2ee2 100755 --- a/OPEN-GAME +++ b/OPEN-GAME @@ -1,8 +1,8 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from os import environ, execvp, chdir, getcwd from os.path import exists, join, dirname -from sys import version_info, argv, maxint +from sys import version_info, argv def can_import(module_name): try: @@ -29,15 +29,6 @@ def launch_alternative(alternatives): def move_to_executable(): chdir(dirname(argv[0])) -if is_python_3(): - launch_alternative(["python2", "python2.7", "python2.6"]) - -# if maxint >> 33: -# launch_alternative(["python-32", "python2-32", "python2.7-32", "python2.6-32"]) - -if not can_import("pygame"): - launch_alternative(["python2.7", "python2.6"]) - if "--go-to-dir" in argv: move_to_executable() diff --git a/lib/pgfw b/lib/pgfw deleted file mode 160000 index 498755e..0000000 --- a/lib/pgfw +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 498755ef0e4cadfe3784363e5eb0ec1aff016631