Massive change of python3 executable in files to env python3

This commit is contained in:
Antonio de la Rosa 2016-08-25 02:12:30 +02:00
parent 855617f43a
commit d9c0aab045
41 changed files with 44 additions and 44 deletions

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python3
from collections import OrderedDict from collections import OrderedDict
from paramecio.citoplasma.sessions import get_session from paramecio.citoplasma.sessions import get_session

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python3
import argparse import argparse
import os import os
@ -84,7 +84,7 @@ def start():
pass pass
file_lang="#!/usr/bin/python3\n\n" file_lang="#!/usr/bin/env python3\n\n"
file_lang+="from paramecio.citoplasma.i18n import I18n\n\n" file_lang+="from paramecio.citoplasma.i18n import I18n\n\n"

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python3
# Code based in http://stackoverflow.com/questions/5194057/better-way-to-convert-file-sizes-in-python # Code based in http://stackoverflow.com/questions/5194057/better-way-to-convert-file-sizes-in-python

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python3
# A simple utility for filter ips. Only use this if you don't use a server with blocking ips system # A simple utility for filter ips. Only use this if you don't use a server with blocking ips system

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python3
# This module is suitable for create ssl apis that don't need much performance, if you need more performance use nginx or apache proxiying for generate https content and Paramecio with gunicorn or others wsgi servers for generate the html/json content. # This module is suitable for create ssl apis that don't need much performance, if you need more performance use nginx or apache proxiying for generate https content and Paramecio with gunicorn or others wsgi servers for generate the html/json content.

View file

@ -1,4 +1,4 @@
#/usr/bin/python3 #/usr/bin/env python3
from paramecio.citoplasma.urls import add_get_parameters from paramecio.citoplasma.urls import add_get_parameters

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python3
import json, re import json, re
from bottle import request, response from bottle import request, response

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python3
from importlib import import_module from importlib import import_module
from paramecio.citoplasma.sessions import get_session from paramecio.citoplasma.sessions import get_session

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python3
from math import ceil, floor from math import ceil, floor
from paramecio.citoplasma.urls import add_get_parameters from paramecio.citoplasma.urls import add_get_parameters

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python3
import os import os
import smtplib import smtplib
import mimetypes import mimetypes

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python3
from itsdangerous import JSONWebSignatureSerializer from itsdangerous import JSONWebSignatureSerializer
from paramecio.citoplasma.keyutils import create_key_encrypt, create_key_encrypt_256, create_key from paramecio.citoplasma.keyutils import create_key_encrypt, create_key_encrypt_256, create_key

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python3
def show_links(switch, arr_links): def show_links(switch, arr_links):

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python3
from settings import config from settings import config
from bottle import request, response, HTTPResponse from bottle import request, response, HTTPResponse

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python3
import argparse import argparse
import os import os

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python3
import traceback import traceback
import argparse import argparse
@ -53,7 +53,7 @@ def regenerate_modules_config():
modules=[] modules=[]
modules.append("#!/usr/bin/python3\n\n") modules.append("#!/usr/bin/env python3\n\n")
modules.append("list_modules=[]\n\n") modules.append("list_modules=[]\n\n")
for module in config.modules: for module in config.modules:

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python3
from collections import OrderedDict from collections import OrderedDict

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python3
import sys import sys
import pymysql import pymysql

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python3
import sys import sys
import MySQLdb.cursors import MySQLdb.cursors

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python3
import argparse import argparse
import os,traceback import os,traceback
@ -353,7 +353,7 @@ def create_backup(original_file_path, file_path):
if not p.is_dir(): if not p.is_dir():
p.mkdir(0o755, True) p.mkdir(0o755, True)
with open(path+'/__init__.py', 'w') as f: with open(path+'/__init__.py', 'w') as f:
f.write("#!/usr/bin/python3\n") f.write("#!/usr/bin/env python3\n")
#Create path #Create path

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python3
import json import json
from paramecio.cromosoma.webmodel import PhangoField from paramecio.cromosoma.webmodel import PhangoField

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python3
from paramecio.cromosoma.corefields import CharField from paramecio.cromosoma.corefields import CharField
from paramecio.cromosoma import coreforms from paramecio.cromosoma import coreforms

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python3
#from paramecio.cromosoma.webmodel import PhangoField #from paramecio.cromosoma.webmodel import PhangoField
from paramecio.cromosoma.corefields import IntegerField from paramecio.cromosoma.corefields import IntegerField

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python3
from paramecio.cromosoma.corefields import CharField from paramecio.cromosoma.corefields import CharField
from paramecio.citoplasma.slugify import slugify from paramecio.citoplasma.slugify import slugify

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python3
from paramecio.cromosoma.coreforms import BaseForm from paramecio.cromosoma.coreforms import BaseForm
from paramecio.citoplasma.mtemplates import standard_t from paramecio.citoplasma.mtemplates import standard_t

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python3
from paramecio.cromosoma.coreforms import BaseForm from paramecio.cromosoma.coreforms import BaseForm

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python3
from paramecio.cromosoma.coreforms import BaseForm from paramecio.cromosoma.coreforms import BaseForm
from paramecio.citoplasma.i18n import I18n from paramecio.citoplasma.i18n import I18n

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python3
from paramecio.cromosoma import corefields from paramecio.cromosoma import corefields
from paramecio.cromosoma.coreforms import PasswordForm from paramecio.cromosoma.coreforms import PasswordForm

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python3
from paramecio.cromosoma.webmodel import WebModel from paramecio.cromosoma.webmodel import WebModel
from paramecio.cromosoma.coreforms import PasswordForm from paramecio.cromosoma.coreforms import PasswordForm

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python3
import sys import sys
import re import re

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python3
from paramecio.citoplasma.i18n import I18n from paramecio.citoplasma.i18n import I18n

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python3
from paramecio.citoplasma.i18n import I18n from paramecio.citoplasma.i18n import I18n

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python3
from paramecio.modules.admin.models.admin import UserAdmin from paramecio.modules.admin.models.admin import UserAdmin
from paramecio.citoplasma.urls import make_url from paramecio.citoplasma.urls import make_url

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python3
import traceback, sys import traceback, sys
from paramecio.citoplasma.mtemplates import env_theme, PTemplate from paramecio.citoplasma.mtemplates import env_theme, PTemplate

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python3
from paramecio.citoplasma.i18n import I18n from paramecio.citoplasma.i18n import I18n
from paramecio.cromosoma.webmodel import WebModel from paramecio.cromosoma.webmodel import WebModel

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python3
def home(request, **args): def home(request, **args):

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python3
from paramecio.citoplasma.mtemplates import PTemplate, env_theme from paramecio.citoplasma.mtemplates import PTemplate, env_theme
from paramecio.citoplasma.urls import make_url from paramecio.citoplasma.urls import make_url

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python3
# You need install cromosoma for use this. # You need install cromosoma for use this.

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python3
from paramecio.citoplasma.i18n import I18n from paramecio.citoplasma.i18n import I18n

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python3
list_modules=[] list_modules=[]

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python3
list_modules=[] list_modules=[]

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python3
import sys import sys
import os import os