Browse Source

remove shebang lines from files that are not meant to be executed. Change shebang line on executable to use python3 explicitly.

sisyphus
Dustin Falgout 8 years ago
parent
commit
c5220449fc
  1. 2
      build/utils.sh
  2. 2
      web-greeter/greeter.py
  3. 1
      web-greeter/utils/interceptor.py
  4. 1
      web-greeter/utils/pkg_json.py
  5. 1
      web-greeter/utils/theme.py

2
build/utils.sh

@ -39,7 +39,7 @@ do_build() {
&& zip -rq ../"${PKGNAME}.zip" . -x '**__pycache__**' 'resources/*' \
&& cd - >/dev/null \
&& mkdir -p "${INSTALL_ROOT}"/usr/{bin,share} \
&& echo '#!/bin/python' >> "${INSTALL_ROOT}/usr/bin/web-greeter" \
&& echo '#!/bin/python3' >> "${INSTALL_ROOT}/usr/bin/web-greeter" \
&& cat web-greeter.zip >> "${INSTALL_ROOT}/usr/bin/web-greeter" \
&& chmod +x "${INSTALL_ROOT}/usr/bin/web-greeter")
}

2
web-greeter/greeter.py

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/python3
# -*- coding: utf-8 -*-
#
# greeter.py

1
web-greeter/utils/interceptor.py

@ -1,4 +1,3 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
#
# interceptor.py

1
web-greeter/utils/pkg_json.py

@ -1,4 +1,3 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
#
# pkg_json.py

1
web-greeter/utils/theme.py

@ -1,4 +1,3 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
#
# theme.py

Loading…
Cancel
Save