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 paramecio.citoplasma.sessions import get_session

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
import argparse
import os
@ -84,7 +84,7 @@ def start():
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"

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

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

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.

View file

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

View file

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

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
from importlib import import_module
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 paramecio.citoplasma.urls import add_get_parameters

View file

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

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
from itsdangerous import JSONWebSignatureSerializer
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):

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
import json
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 import coreforms

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
#from paramecio.cromosoma.webmodel import PhangoField
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.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.citoplasma.mtemplates import standard_t

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
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.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.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.coreforms import PasswordForm

View file

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

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
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

View file

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

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
import traceback, sys
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.cromosoma.webmodel import WebModel

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
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.urls import make_url

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
# 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

View file

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

View file

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

View file

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