🔥 big clean
This commit is contained in:
parent
7591660d53
commit
46e92edf43
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,2 +1,4 @@
|
|||||||
public/blog
|
public/
|
||||||
|
venv/
|
||||||
|
__pycache__
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ PELICANOPTS=
|
|||||||
|
|
||||||
BASEDIR=$(CURDIR)
|
BASEDIR=$(CURDIR)
|
||||||
INPUTDIR=$(BASEDIR)/content
|
INPUTDIR=$(BASEDIR)/content
|
||||||
OUTPUTDIR=$(BASEDIR)../public/blog
|
OUTPUTDIR=$(BASEDIR)/public
|
||||||
CONFFILE=$(BASEDIR)/pelicanconf.py
|
CONFFILE=$(BASEDIR)/pelicanconf.py
|
||||||
PUBLISHCONF=$(BASEDIR)/publishconf.py
|
PUBLISHCONF=$(BASEDIR)/publishconf.py
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,78 +0,0 @@
|
|||||||
# This file must be used with "source bin/activate" *from bash*
|
|
||||||
# you cannot run it directly
|
|
||||||
|
|
||||||
deactivate () {
|
|
||||||
unset -f pydoc >/dev/null 2>&1
|
|
||||||
|
|
||||||
# reset old environment variables
|
|
||||||
# ! [ -z ${VAR+_} ] returns true if VAR is declared at all
|
|
||||||
if ! [ -z "${_OLD_VIRTUAL_PATH+_}" ] ; then
|
|
||||||
PATH="$_OLD_VIRTUAL_PATH"
|
|
||||||
export PATH
|
|
||||||
unset _OLD_VIRTUAL_PATH
|
|
||||||
fi
|
|
||||||
if ! [ -z "${_OLD_VIRTUAL_PYTHONHOME+_}" ] ; then
|
|
||||||
PYTHONHOME="$_OLD_VIRTUAL_PYTHONHOME"
|
|
||||||
export PYTHONHOME
|
|
||||||
unset _OLD_VIRTUAL_PYTHONHOME
|
|
||||||
fi
|
|
||||||
|
|
||||||
# This should detect bash and zsh, which have a hash command that must
|
|
||||||
# be called to get it to forget past commands. Without forgetting
|
|
||||||
# past commands the $PATH changes we made may not be respected
|
|
||||||
if [ -n "${BASH-}" ] || [ -n "${ZSH_VERSION-}" ] ; then
|
|
||||||
hash -r 2>/dev/null
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! [ -z "${_OLD_VIRTUAL_PS1+_}" ] ; then
|
|
||||||
PS1="$_OLD_VIRTUAL_PS1"
|
|
||||||
export PS1
|
|
||||||
unset _OLD_VIRTUAL_PS1
|
|
||||||
fi
|
|
||||||
|
|
||||||
unset VIRTUAL_ENV
|
|
||||||
if [ ! "${1-}" = "nondestructive" ] ; then
|
|
||||||
# Self destruct!
|
|
||||||
unset -f deactivate
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
# unset irrelevant variables
|
|
||||||
deactivate nondestructive
|
|
||||||
|
|
||||||
VIRTUAL_ENV="/home/ilya/git/jeancloud-website/blog/venv"
|
|
||||||
export VIRTUAL_ENV
|
|
||||||
|
|
||||||
_OLD_VIRTUAL_PATH="$PATH"
|
|
||||||
PATH="$VIRTUAL_ENV/bin:$PATH"
|
|
||||||
export PATH
|
|
||||||
|
|
||||||
# unset PYTHONHOME if set
|
|
||||||
if ! [ -z "${PYTHONHOME+_}" ] ; then
|
|
||||||
_OLD_VIRTUAL_PYTHONHOME="$PYTHONHOME"
|
|
||||||
unset PYTHONHOME
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT-}" ] ; then
|
|
||||||
_OLD_VIRTUAL_PS1="$PS1"
|
|
||||||
if [ "x" != x ] ; then
|
|
||||||
PS1="$PS1"
|
|
||||||
else
|
|
||||||
PS1="(`basename \"$VIRTUAL_ENV\"`) $PS1"
|
|
||||||
fi
|
|
||||||
export PS1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Make sure to unalias pydoc if it's already there
|
|
||||||
alias pydoc 2>/dev/null >/dev/null && unalias pydoc
|
|
||||||
|
|
||||||
pydoc () {
|
|
||||||
python -m pydoc "$@"
|
|
||||||
}
|
|
||||||
|
|
||||||
# This should detect bash and zsh, which have a hash command that must
|
|
||||||
# be called to get it to forget past commands. Without forgetting
|
|
||||||
# past commands the $PATH changes we made may not be respected
|
|
||||||
if [ -n "${BASH-}" ] || [ -n "${ZSH_VERSION-}" ] ; then
|
|
||||||
hash -r 2>/dev/null
|
|
||||||
fi
|
|
@ -1,42 +0,0 @@
|
|||||||
# This file must be used with "source bin/activate.csh" *from csh*.
|
|
||||||
# You cannot run it directly.
|
|
||||||
# Created by Davide Di Blasi <davidedb@gmail.com>.
|
|
||||||
|
|
||||||
set newline='\
|
|
||||||
'
|
|
||||||
|
|
||||||
alias deactivate 'test $?_OLD_VIRTUAL_PATH != 0 && setenv PATH "$_OLD_VIRTUAL_PATH:q" && unset _OLD_VIRTUAL_PATH; rehash; test $?_OLD_VIRTUAL_PROMPT != 0 && set prompt="$_OLD_VIRTUAL_PROMPT:q" && unset _OLD_VIRTUAL_PROMPT; unsetenv VIRTUAL_ENV; test "\!:*" != "nondestructive" && unalias deactivate && unalias pydoc'
|
|
||||||
|
|
||||||
# Unset irrelevant variables.
|
|
||||||
deactivate nondestructive
|
|
||||||
|
|
||||||
setenv VIRTUAL_ENV "/home/ilya/git/jeancloud-website/blog/venv"
|
|
||||||
|
|
||||||
set _OLD_VIRTUAL_PATH="$PATH:q"
|
|
||||||
setenv PATH "$VIRTUAL_ENV:q/bin:$PATH:q"
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if ("" != "") then
|
|
||||||
set env_name = ""
|
|
||||||
else
|
|
||||||
set env_name = "$VIRTUAL_ENV:t:q"
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Could be in a non-interactive environment,
|
|
||||||
# in which case, $prompt is undefined and we wouldn't
|
|
||||||
# care about the prompt anyway.
|
|
||||||
if ( $?prompt ) then
|
|
||||||
set _OLD_VIRTUAL_PROMPT="$prompt:q"
|
|
||||||
if ( "$prompt:q" =~ *"$newline:q"* ) then
|
|
||||||
:
|
|
||||||
else
|
|
||||||
set prompt = "[$env_name:q] $prompt:q"
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
unset env_name
|
|
||||||
|
|
||||||
alias pydoc python -m pydoc
|
|
||||||
|
|
||||||
rehash
|
|
@ -1,76 +0,0 @@
|
|||||||
# This file must be used using `source bin/activate.fish` *within a running fish ( http://fishshell.com ) session*.
|
|
||||||
# Do not run it directly.
|
|
||||||
|
|
||||||
function deactivate -d 'Exit virtualenv mode and return to the normal environment.'
|
|
||||||
# reset old environment variables
|
|
||||||
if test -n "$_OLD_VIRTUAL_PATH"
|
|
||||||
set -gx PATH $_OLD_VIRTUAL_PATH
|
|
||||||
set -e _OLD_VIRTUAL_PATH
|
|
||||||
end
|
|
||||||
|
|
||||||
if test -n "$_OLD_VIRTUAL_PYTHONHOME"
|
|
||||||
set -gx PYTHONHOME $_OLD_VIRTUAL_PYTHONHOME
|
|
||||||
set -e _OLD_VIRTUAL_PYTHONHOME
|
|
||||||
end
|
|
||||||
|
|
||||||
if test -n "$_OLD_FISH_PROMPT_OVERRIDE"
|
|
||||||
# Set an empty local `$fish_function_path` to allow the removal of `fish_prompt` using `functions -e`.
|
|
||||||
set -l fish_function_path
|
|
||||||
|
|
||||||
# Erase virtualenv's `fish_prompt` and restore the original.
|
|
||||||
functions -e fish_prompt
|
|
||||||
functions -c _old_fish_prompt fish_prompt
|
|
||||||
functions -e _old_fish_prompt
|
|
||||||
set -e _OLD_FISH_PROMPT_OVERRIDE
|
|
||||||
end
|
|
||||||
|
|
||||||
set -e VIRTUAL_ENV
|
|
||||||
|
|
||||||
if test "$argv[1]" != 'nondestructive'
|
|
||||||
# Self-destruct!
|
|
||||||
functions -e pydoc
|
|
||||||
functions -e deactivate
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# Unset irrelevant variables.
|
|
||||||
deactivate nondestructive
|
|
||||||
|
|
||||||
set -gx VIRTUAL_ENV "/home/ilya/git/jeancloud-website/blog/venv"
|
|
||||||
|
|
||||||
set -gx _OLD_VIRTUAL_PATH $PATH
|
|
||||||
set -gx PATH "$VIRTUAL_ENV/bin" $PATH
|
|
||||||
|
|
||||||
# Unset `$PYTHONHOME` if set.
|
|
||||||
if set -q PYTHONHOME
|
|
||||||
set -gx _OLD_VIRTUAL_PYTHONHOME $PYTHONHOME
|
|
||||||
set -e PYTHONHOME
|
|
||||||
end
|
|
||||||
|
|
||||||
function pydoc
|
|
||||||
python -m pydoc $argv
|
|
||||||
end
|
|
||||||
|
|
||||||
if test -z "$VIRTUAL_ENV_DISABLE_PROMPT"
|
|
||||||
# Copy the current `fish_prompt` function as `_old_fish_prompt`.
|
|
||||||
functions -c fish_prompt _old_fish_prompt
|
|
||||||
|
|
||||||
function fish_prompt
|
|
||||||
# Save the current $status, for fish_prompts that display it.
|
|
||||||
set -l old_status $status
|
|
||||||
|
|
||||||
# Prompt override provided?
|
|
||||||
# If not, just prepend the environment name.
|
|
||||||
if test -n ""
|
|
||||||
printf '%s%s' "" (set_color normal)
|
|
||||||
else
|
|
||||||
printf '%s(%s) ' (set_color normal) (basename "$VIRTUAL_ENV")
|
|
||||||
end
|
|
||||||
|
|
||||||
# Restore the original $status
|
|
||||||
echo "exit $old_status" | source
|
|
||||||
_old_fish_prompt
|
|
||||||
end
|
|
||||||
|
|
||||||
set -gx _OLD_FISH_PROMPT_OVERRIDE "$VIRTUAL_ENV"
|
|
||||||
end
|
|
@ -1,150 +0,0 @@
|
|||||||
# This file must be dot sourced from PoSh; you cannot run it
|
|
||||||
# directly. Do this: . ./activate.ps1
|
|
||||||
|
|
||||||
# FIXME: clean up unused vars.
|
|
||||||
$script:THIS_PATH = $myinvocation.mycommand.path
|
|
||||||
$script:BASE_DIR = split-path (resolve-path "$THIS_PATH/..") -Parent
|
|
||||||
$script:DIR_NAME = split-path $BASE_DIR -Leaf
|
|
||||||
|
|
||||||
function global:deactivate ( [switch] $NonDestructive ){
|
|
||||||
|
|
||||||
if ( test-path variable:_OLD_VIRTUAL_PATH ) {
|
|
||||||
$env:PATH = $variable:_OLD_VIRTUAL_PATH
|
|
||||||
remove-variable "_OLD_VIRTUAL_PATH" -scope global
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( test-path function:_old_virtual_prompt ) {
|
|
||||||
$function:prompt = $function:_old_virtual_prompt
|
|
||||||
remove-item function:\_old_virtual_prompt
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($env:VIRTUAL_ENV) {
|
|
||||||
$old_env = split-path $env:VIRTUAL_ENV -leaf
|
|
||||||
remove-item env:VIRTUAL_ENV -erroraction silentlycontinue
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( !$NonDestructive ) {
|
|
||||||
# Self destruct!
|
|
||||||
remove-item function:deactivate
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
# unset irrelevant variables
|
|
||||||
deactivate -nondestructive
|
|
||||||
|
|
||||||
$VIRTUAL_ENV = $BASE_DIR
|
|
||||||
$env:VIRTUAL_ENV = $VIRTUAL_ENV
|
|
||||||
|
|
||||||
$global:_OLD_VIRTUAL_PATH = $env:PATH
|
|
||||||
$env:PATH = "$env:VIRTUAL_ENV/bin:" + $env:PATH
|
|
||||||
if (! $env:VIRTUAL_ENV_DISABLE_PROMPT) {
|
|
||||||
function global:_old_virtual_prompt { "" }
|
|
||||||
$function:_old_virtual_prompt = $function:prompt
|
|
||||||
function global:prompt {
|
|
||||||
# Add a prefix to the current prompt, but don't discard it.
|
|
||||||
write-host "($(split-path $env:VIRTUAL_ENV -leaf)) " -nonewline
|
|
||||||
& $function:_old_virtual_prompt
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
# SIG # Begin signature block
|
|
||||||
# MIISeAYJKoZIhvcNAQcCoIISaTCCEmUCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB
|
|
||||||
# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgW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0jBBgwFoAU0E4P
|
|
||||||
# QJlsuEsZbzsouODjiAc0qrcwggIhBgNVHSAEggIYMIICFDCCAhAGCysGAQQBgbU3
|
|
||||||
# AQICMIIB/zAuBggrBgEFBQcCARYiaHR0cDovL3d3dy5zdGFydHNzbC5jb20vcG9s
|
|
||||||
# aWN5LnBkZjA0BggrBgEFBQcCARYoaHR0cDovL3d3dy5zdGFydHNzbC5jb20vaW50
|
|
||||||
# ZXJtZWRpYXRlLnBkZjCB9wYIKwYBBQUHAgIwgeowJxYgU3RhcnRDb20gQ2VydGlm
|
|
||||||
# aWNhdGlvbiBBdXRob3JpdHkwAwIBARqBvlRoaXMgY2VydGlmaWNhdGUgd2FzIGlz
|
|
||||||
# c3VlZCBhY2NvcmRpbmcgdG8gdGhlIENsYXNzIDIgVmFsaWRhdGlvbiByZXF1aXJl
|
|
||||||
# bWVudHMgb2YgdGhlIFN0YXJ0Q29tIENBIHBvbGljeSwgcmVsaWFuY2Ugb25seSBm
|
|
||||||
# b3IgdGhlIGludGVuZGVkIHB1cnBvc2UgaW4gY29tcGxpYW5jZSBvZiB0aGUgcmVs
|
|
||||||
# eWluZyBwYXJ0eSBvYmxpZ2F0aW9ucy4wgZwGCCsGAQUFBwICMIGPMCcWIFN0YXJ0
|
|
||||||
# Q29tIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MAMCAQIaZExpYWJpbGl0eSBhbmQg
|
|
||||||
# d2FycmFudGllcyBhcmUgbGltaXRlZCEgU2VlIHNlY3Rpb24gIkxlZ2FsIGFuZCBM
|
|
||||||
# aW1pdGF0aW9ucyIgb2YgdGhlIFN0YXJ0Q29tIENBIHBvbGljeS4wNgYDVR0fBC8w
|
|
||||||
# LTAroCmgJ4YlaHR0cDovL2NybC5zdGFydHNzbC5jb20vY3J0YzItY3JsLmNybDCB
|
|
||||||
# iQYIKwYBBQUHAQEEfTB7MDcGCCsGAQUFBzABhitodHRwOi8vb2NzcC5zdGFydHNz
|
|
||||||
# bC5jb20vc3Vi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Pr6DANBgkqhkiG9w0BAQEFAASCAgCInvOZ
|
|
||||||
# FdaNFzbf6trmFDZKMojyx3UjKMCqNjHVBbuKY0qXwFC/ElYDV1ShJ2CBZbdurydO
|
|
||||||
# OQ6cIQ0KREOCwmX/xB49IlLHHUxNhEkVv7HGU3EKAFf9IBt9Yr7jikiR9cjIsfHK
|
|
||||||
# 4cjkoKJL7g28yEpLLkHt1eo37f1Ga9lDWEa5Zq3U5yX+IwXhrUBm1h8Xr033FhTR
|
|
||||||
# VEpuSz6LHtbrL/zgJnCzJ2ahjtJoYevdcWiNXffosJHFaSfYDDbiNsPRDH/1avmb
|
|
||||||
# 5j/7BhP8BcBaR6Fp8tFbNGIcWHHGcjqLMnTc4w13b7b4pDhypqElBa4+lCmwdvv9
|
|
||||||
# GydYtRgPz8GHeoBoKj30YBlMzRIfFYaIFGIC4Ai3UEXkuH9TxYohVbGm/W0Kl4Lb
|
|
||||||
# RJ1FwiVcLcTOJdgNId2vQvKc+jtNrjcg5SP9h2v/C4aTx8tyc6tE3TOPh2f9b8DL
|
|
||||||
# S+SbVArJpuJqrPTxDDoO1QNjTgLcdVYeZDE+r/NjaGZ6cMSd8db3EaG3ijD/0bud
|
|
||||||
# SItbm/OlNVbQOFRR76D+ZNgPcU5iNZ3bmvQQIg6aSB9MHUpIE/SeCkNl9YeVk1/1
|
|
||||||
# GFULgNMRmIYP4KLvu9ylh5Gu3hvD5VNhH6+FlXANwFy07uXks5uF8mfZVxVCnodG
|
|
||||||
# xkNCx+6PsrA5Z7WP4pXcmYnMn97npP/Q9EHJWw==
|
|
||||||
# SIG # End signature block
|
|
@ -1,36 +0,0 @@
|
|||||||
"""By using execfile(this_file, dict(__file__=this_file)) you will
|
|
||||||
activate this virtualenv environment.
|
|
||||||
|
|
||||||
This can be used when you must use an existing Python interpreter, not
|
|
||||||
the virtualenv bin/python
|
|
||||||
"""
|
|
||||||
|
|
||||||
try:
|
|
||||||
__file__
|
|
||||||
except NameError:
|
|
||||||
raise AssertionError(
|
|
||||||
"You must run this like execfile('path/to/activate_this.py', dict(__file__='path/to/activate_this.py'))"
|
|
||||||
)
|
|
||||||
import os
|
|
||||||
import site
|
|
||||||
import sys
|
|
||||||
|
|
||||||
old_os_path = os.environ.get("PATH", "")
|
|
||||||
os.environ["PATH"] = os.path.dirname(os.path.abspath(__file__)) + os.pathsep + old_os_path
|
|
||||||
base = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
|
||||||
if sys.platform == "win32":
|
|
||||||
site_packages = os.path.join(base, "Lib", "site-packages")
|
|
||||||
else:
|
|
||||||
site_packages = os.path.join(base, "lib", "python%s" % sys.version[:3], "site-packages")
|
|
||||||
prev_sys_path = list(sys.path)
|
|
||||||
|
|
||||||
site.addsitedir(site_packages)
|
|
||||||
sys.real_prefix = sys.prefix
|
|
||||||
sys.prefix = base
|
|
||||||
# Move the added items to the front of the path:
|
|
||||||
new_sys_path = []
|
|
||||||
for item in list(sys.path):
|
|
||||||
if item not in prev_sys_path:
|
|
||||||
new_sys_path.append(item)
|
|
||||||
sys.path.remove(item)
|
|
||||||
sys.path[:0] = new_sys_path
|
|
@ -1,11 +0,0 @@
|
|||||||
#!/home/ilya/git/jeancloud-website/blog/venv/bin/python
|
|
||||||
|
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
import re
|
|
||||||
import sys
|
|
||||||
|
|
||||||
from setuptools.command.easy_install import main
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
|
|
||||||
sys.exit(main())
|
|
@ -1,11 +0,0 @@
|
|||||||
#!/home/ilya/git/jeancloud-website/blog/venv/bin/python
|
|
||||||
|
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
import re
|
|
||||||
import sys
|
|
||||||
|
|
||||||
from setuptools.command.easy_install import main
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
|
|
||||||
sys.exit(main())
|
|
@ -1,8 +0,0 @@
|
|||||||
#!/home/ilya/git/jeancloud-website/blog/venv/bin/python
|
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
import re
|
|
||||||
import sys
|
|
||||||
from markdown.__main__ import run
|
|
||||||
if __name__ == '__main__':
|
|
||||||
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
|
||||||
sys.exit(run())
|
|
@ -1,8 +0,0 @@
|
|||||||
#!/home/ilya/git/jeancloud-website/blog/venv/bin/python
|
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
import re
|
|
||||||
import sys
|
|
||||||
from pelican.__main__ import main
|
|
||||||
if __name__ == '__main__':
|
|
||||||
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
|
||||||
sys.exit(main())
|
|
@ -1,8 +0,0 @@
|
|||||||
#!/home/ilya/git/jeancloud-website/blog/venv/bin/python
|
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
import re
|
|
||||||
import sys
|
|
||||||
from pelican.tools.pelican_import import main
|
|
||||||
if __name__ == '__main__':
|
|
||||||
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
|
||||||
sys.exit(main())
|
|
@ -1,8 +0,0 @@
|
|||||||
#!/home/ilya/git/jeancloud-website/blog/venv/bin/python
|
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
import re
|
|
||||||
import sys
|
|
||||||
from pelican.tools.pelican_quickstart import main
|
|
||||||
if __name__ == '__main__':
|
|
||||||
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
|
||||||
sys.exit(main())
|
|
@ -1,8 +0,0 @@
|
|||||||
#!/home/ilya/git/jeancloud-website/blog/venv/bin/python
|
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
import re
|
|
||||||
import sys
|
|
||||||
from pelican.tools.pelican_themes import main
|
|
||||||
if __name__ == '__main__':
|
|
||||||
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
|
||||||
sys.exit(main())
|
|
@ -1,11 +0,0 @@
|
|||||||
#!/home/ilya/git/jeancloud-website/blog/venv/bin/python
|
|
||||||
|
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
import re
|
|
||||||
import sys
|
|
||||||
|
|
||||||
from pip._internal.cli.main import main
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
|
|
||||||
sys.exit(main())
|
|
@ -1,11 +0,0 @@
|
|||||||
#!/home/ilya/git/jeancloud-website/blog/venv/bin/python
|
|
||||||
|
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
import re
|
|
||||||
import sys
|
|
||||||
|
|
||||||
from pip._internal.cli.main import main
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
|
|
||||||
sys.exit(main())
|
|
@ -1,11 +0,0 @@
|
|||||||
#!/home/ilya/git/jeancloud-website/blog/venv/bin/python
|
|
||||||
|
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
import re
|
|
||||||
import sys
|
|
||||||
|
|
||||||
from pip._internal.cli.main import main
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
|
|
||||||
sys.exit(main())
|
|
@ -1,8 +0,0 @@
|
|||||||
#!/home/ilya/git/jeancloud-website/blog/venv/bin/python
|
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
import re
|
|
||||||
import sys
|
|
||||||
from pygments.cmdline import main
|
|
||||||
if __name__ == '__main__':
|
|
||||||
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
|
||||||
sys.exit(main())
|
|
Binary file not shown.
@ -1,78 +0,0 @@
|
|||||||
#!/home/ilya/git/jeancloud-website/blog/venv/bin/python
|
|
||||||
|
|
||||||
import sys
|
|
||||||
import getopt
|
|
||||||
import sysconfig
|
|
||||||
|
|
||||||
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
|
|
||||||
'ldflags', 'help']
|
|
||||||
|
|
||||||
if sys.version_info >= (3, 2):
|
|
||||||
valid_opts.insert(-1, 'extension-suffix')
|
|
||||||
valid_opts.append('abiflags')
|
|
||||||
if sys.version_info >= (3, 3):
|
|
||||||
valid_opts.append('configdir')
|
|
||||||
|
|
||||||
|
|
||||||
def exit_with_usage(code=1):
|
|
||||||
sys.stderr.write("Usage: {0} [{1}]\n".format(
|
|
||||||
sys.argv[0], '|'.join('--'+opt for opt in valid_opts)))
|
|
||||||
sys.exit(code)
|
|
||||||
|
|
||||||
try:
|
|
||||||
opts, args = getopt.getopt(sys.argv[1:], '', valid_opts)
|
|
||||||
except getopt.error:
|
|
||||||
exit_with_usage()
|
|
||||||
|
|
||||||
if not opts:
|
|
||||||
exit_with_usage()
|
|
||||||
|
|
||||||
pyver = sysconfig.get_config_var('VERSION')
|
|
||||||
getvar = sysconfig.get_config_var
|
|
||||||
|
|
||||||
opt_flags = [flag for (flag, val) in opts]
|
|
||||||
|
|
||||||
if '--help' in opt_flags:
|
|
||||||
exit_with_usage(code=0)
|
|
||||||
|
|
||||||
for opt in opt_flags:
|
|
||||||
if opt == '--prefix':
|
|
||||||
print(sysconfig.get_config_var('prefix'))
|
|
||||||
|
|
||||||
elif opt == '--exec-prefix':
|
|
||||||
print(sysconfig.get_config_var('exec_prefix'))
|
|
||||||
|
|
||||||
elif opt in ('--includes', '--cflags'):
|
|
||||||
flags = ['-I' + sysconfig.get_path('include'),
|
|
||||||
'-I' + sysconfig.get_path('platinclude')]
|
|
||||||
if opt == '--cflags':
|
|
||||||
flags.extend(getvar('CFLAGS').split())
|
|
||||||
print(' '.join(flags))
|
|
||||||
|
|
||||||
elif opt in ('--libs', '--ldflags'):
|
|
||||||
abiflags = getattr(sys, 'abiflags', '')
|
|
||||||
libs = ['-lpython' + pyver + abiflags]
|
|
||||||
libs += getvar('LIBS').split()
|
|
||||||
libs += getvar('SYSLIBS').split()
|
|
||||||
# add the prefix/lib/pythonX.Y/config dir, but only if there is no
|
|
||||||
# shared library in prefix/lib/.
|
|
||||||
if opt == '--ldflags':
|
|
||||||
if not getvar('Py_ENABLE_SHARED'):
|
|
||||||
libs.insert(0, '-L' + getvar('LIBPL'))
|
|
||||||
if not getvar('PYTHONFRAMEWORK'):
|
|
||||||
libs.extend(getvar('LINKFORSHARED').split())
|
|
||||||
print(' '.join(libs))
|
|
||||||
|
|
||||||
elif opt == '--extension-suffix':
|
|
||||||
ext_suffix = sysconfig.get_config_var('EXT_SUFFIX')
|
|
||||||
if ext_suffix is None:
|
|
||||||
ext_suffix = sysconfig.get_config_var('SO')
|
|
||||||
print(ext_suffix)
|
|
||||||
|
|
||||||
elif opt == '--abiflags':
|
|
||||||
if not getattr(sys, 'abiflags', None):
|
|
||||||
exit_with_usage()
|
|
||||||
print(sys.abiflags)
|
|
||||||
|
|
||||||
elif opt == '--configdir':
|
|
||||||
print(sysconfig.get_config_var('LIBPL'))
|
|
@ -1 +0,0 @@
|
|||||||
python
|
|
@ -1 +0,0 @@
|
|||||||
python
|
|
@ -1,23 +0,0 @@
|
|||||||
#!/home/ilya/git/jeancloud-website/blog/venv/bin/python
|
|
||||||
|
|
||||||
# $Id: rst2html.py 4564 2006-05-21 20:44:42Z wiemann $
|
|
||||||
# Author: David Goodger <goodger@python.org>
|
|
||||||
# Copyright: This module has been placed in the public domain.
|
|
||||||
|
|
||||||
"""
|
|
||||||
A minimal front end to the Docutils Publisher, producing HTML.
|
|
||||||
"""
|
|
||||||
|
|
||||||
try:
|
|
||||||
import locale
|
|
||||||
locale.setlocale(locale.LC_ALL, '')
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
|
|
||||||
from docutils.core import publish_cmdline, default_description
|
|
||||||
|
|
||||||
|
|
||||||
description = ('Generates (X)HTML documents from standalone reStructuredText '
|
|
||||||
'sources. ' + default_description)
|
|
||||||
|
|
||||||
publish_cmdline(writer_name='html', description=description)
|
|
@ -1,26 +0,0 @@
|
|||||||
#!/home/ilya/git/jeancloud-website/blog/venv/bin/python
|
|
||||||
|
|
||||||
# $Id: rst2html4.py 7994 2016-12-10 17:41:45Z milde $
|
|
||||||
# Author: David Goodger <goodger@python.org>
|
|
||||||
# Copyright: This module has been placed in the public domain.
|
|
||||||
|
|
||||||
"""
|
|
||||||
A minimal front end to the Docutils Publisher, producing (X)HTML.
|
|
||||||
|
|
||||||
The output conforms to XHTML 1.0 transitional
|
|
||||||
and almost to HTML 4.01 transitional (except for closing empty tags).
|
|
||||||
"""
|
|
||||||
|
|
||||||
try:
|
|
||||||
import locale
|
|
||||||
locale.setlocale(locale.LC_ALL, '')
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
|
|
||||||
from docutils.core import publish_cmdline, default_description
|
|
||||||
|
|
||||||
|
|
||||||
description = ('Generates (X)HTML documents from standalone reStructuredText '
|
|
||||||
'sources. ' + default_description)
|
|
||||||
|
|
||||||
publish_cmdline(writer_name='html4', description=description)
|
|
@ -1,35 +0,0 @@
|
|||||||
#!/home/ilya/git/jeancloud-website/blog/venv/bin/python
|
|
||||||
# -*- coding: utf8 -*-
|
|
||||||
# :Copyright: © 2015 Günter Milde.
|
|
||||||
# :License: Released under the terms of the `2-Clause BSD license`_, in short:
|
|
||||||
#
|
|
||||||
# Copying and distribution of this file, with or without modification,
|
|
||||||
# are permitted in any medium without royalty provided the copyright
|
|
||||||
# notice and this notice are preserved.
|
|
||||||
# This file is offered as-is, without any warranty.
|
|
||||||
#
|
|
||||||
# .. _2-Clause BSD license: http://www.spdx.org/licenses/BSD-2-Clause
|
|
||||||
#
|
|
||||||
# Revision: $Revision: 8410 $
|
|
||||||
# Date: $Date: 2019-11-04 22:14:43 +0100 (Mo, 04. Nov 2019) $
|
|
||||||
|
|
||||||
"""
|
|
||||||
A minimal front end to the Docutils Publisher, producing HTML 5 documents.
|
|
||||||
|
|
||||||
The output also conforms to XHTML 1.0 transitional
|
|
||||||
(except for the doctype declaration).
|
|
||||||
"""
|
|
||||||
|
|
||||||
try:
|
|
||||||
import locale # module missing in Jython
|
|
||||||
locale.setlocale(locale.LC_ALL, '')
|
|
||||||
except locale.Error:
|
|
||||||
pass
|
|
||||||
|
|
||||||
from docutils.core import publish_cmdline, default_description
|
|
||||||
|
|
||||||
description = (u'Generates HTML 5 documents from standalone '
|
|
||||||
u'reStructuredText sources '
|
|
||||||
+ default_description)
|
|
||||||
|
|
||||||
publish_cmdline(writer_name='html5', description=description)
|
|
@ -1,26 +0,0 @@
|
|||||||
#!/home/ilya/git/jeancloud-website/blog/venv/bin/python
|
|
||||||
|
|
||||||
# $Id: rst2latex.py 5905 2009-04-16 12:04:49Z milde $
|
|
||||||
# Author: David Goodger <goodger@python.org>
|
|
||||||
# Copyright: This module has been placed in the public domain.
|
|
||||||
|
|
||||||
"""
|
|
||||||
A minimal front end to the Docutils Publisher, producing LaTeX.
|
|
||||||
"""
|
|
||||||
|
|
||||||
try:
|
|
||||||
import locale
|
|
||||||
locale.setlocale(locale.LC_ALL, '')
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
|
|
||||||
from docutils.core import publish_cmdline
|
|
||||||
|
|
||||||
description = ('Generates LaTeX documents from standalone reStructuredText '
|
|
||||||
'sources. '
|
|
||||||
'Reads from <source> (default is stdin) and writes to '
|
|
||||||
'<destination> (default is stdout). See '
|
|
||||||
'<http://docutils.sourceforge.net/docs/user/latex.html> for '
|
|
||||||
'the full reference.')
|
|
||||||
|
|
||||||
publish_cmdline(writer_name='latex', description=description)
|
|
@ -1,26 +0,0 @@
|
|||||||
#!/home/ilya/git/jeancloud-website/blog/venv/bin/python
|
|
||||||
|
|
||||||
# Author:
|
|
||||||
# Contact: grubert@users.sf.net
|
|
||||||
# Copyright: This module has been placed in the public domain.
|
|
||||||
|
|
||||||
"""
|
|
||||||
man.py
|
|
||||||
======
|
|
||||||
|
|
||||||
This module provides a simple command line interface that uses the
|
|
||||||
man page writer to output from ReStructuredText source.
|
|
||||||
"""
|
|
||||||
|
|
||||||
import locale
|
|
||||||
try:
|
|
||||||
locale.setlocale(locale.LC_ALL, '')
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
|
|
||||||
from docutils.core import publish_cmdline, default_description
|
|
||||||
from docutils.writers import manpage
|
|
||||||
|
|
||||||
description = ("Generates plain unix manual documents. " + default_description)
|
|
||||||
|
|
||||||
publish_cmdline(writer=manpage.Writer(), description=description)
|
|
@ -1,30 +0,0 @@
|
|||||||
#!/home/ilya/git/jeancloud-website/blog/venv/bin/python
|
|
||||||
|
|
||||||
# $Id: rst2odt.py 5839 2009-01-07 19:09:28Z dkuhlman $
|
|
||||||
# Author: Dave Kuhlman <dkuhlman@rexx.com>
|
|
||||||
# Copyright: This module has been placed in the public domain.
|
|
||||||
|
|
||||||
"""
|
|
||||||
A front end to the Docutils Publisher, producing OpenOffice documents.
|
|
||||||
"""
|
|
||||||
|
|
||||||
import sys
|
|
||||||
try:
|
|
||||||
import locale
|
|
||||||
locale.setlocale(locale.LC_ALL, '')
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
|
|
||||||
from docutils.core import publish_cmdline_to_binary, default_description
|
|
||||||
from docutils.writers.odf_odt import Writer, Reader
|
|
||||||
|
|
||||||
|
|
||||||
description = ('Generates OpenDocument/OpenOffice/ODF documents from '
|
|
||||||
'standalone reStructuredText sources. ' + default_description)
|
|
||||||
|
|
||||||
|
|
||||||
writer = Writer()
|
|
||||||
reader = Reader()
|
|
||||||
output = publish_cmdline_to_binary(reader=reader, writer=writer,
|
|
||||||
description=description)
|
|
||||||
|
|
@ -1,67 +0,0 @@
|
|||||||
#!/home/ilya/git/jeancloud-website/blog/venv/bin/python
|
|
||||||
|
|
||||||
# $Id: rst2odt_prepstyles.py 8346 2019-08-26 12:11:32Z milde $
|
|
||||||
# Author: Dave Kuhlman <dkuhlman@rexx.com>
|
|
||||||
# Copyright: This module has been placed in the public domain.
|
|
||||||
|
|
||||||
"""
|
|
||||||
Fix a word-processor-generated styles.odt for odtwriter use: Drop page size
|
|
||||||
specifications from styles.xml in STYLE_FILE.odt.
|
|
||||||
"""
|
|
||||||
|
|
||||||
# Author: Michael Schutte <michi@uiae.at>
|
|
||||||
|
|
||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
from lxml import etree
|
|
||||||
import sys
|
|
||||||
import zipfile
|
|
||||||
from tempfile import mkstemp
|
|
||||||
import shutil
|
|
||||||
import os
|
|
||||||
|
|
||||||
NAMESPACES = {
|
|
||||||
"style": "urn:oasis:names:tc:opendocument:xmlns:style:1.0",
|
|
||||||
"fo": "urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0"
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
def prepstyle(filename):
|
|
||||||
|
|
||||||
zin = zipfile.ZipFile(filename)
|
|
||||||
styles = zin.read("styles.xml")
|
|
||||||
|
|
||||||
root = etree.fromstring(styles)
|
|
||||||
for el in root.xpath("//style:page-layout-properties",
|
|
||||||
namespaces=NAMESPACES):
|
|
||||||
for attr in el.attrib:
|
|
||||||
if attr.startswith("{%s}" % NAMESPACES["fo"]):
|
|
||||||
del el.attrib[attr]
|
|
||||||
|
|
||||||
tempname = mkstemp()
|
|
||||||
zout = zipfile.ZipFile(os.fdopen(tempname[0], "w"), "w",
|
|
||||||
zipfile.ZIP_DEFLATED)
|
|
||||||
|
|
||||||
for item in zin.infolist():
|
|
||||||
if item.filename == "styles.xml":
|
|
||||||
zout.writestr(item, etree.tostring(root))
|
|
||||||
else:
|
|
||||||
zout.writestr(item, zin.read(item.filename))
|
|
||||||
|
|
||||||
zout.close()
|
|
||||||
zin.close()
|
|
||||||
shutil.move(tempname[1], filename)
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
|
||||||
args = sys.argv[1:]
|
|
||||||
if len(args) != 1:
|
|
||||||
print(__doc__, file=sys.stderr)
|
|
||||||
print("Usage: %s STYLE_FILE.odt\n" % sys.argv[0], file=sys.stderr)
|
|
||||||
sys.exit(1)
|
|
||||||
filename = args[0]
|
|
||||||
prepstyle(filename)
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
main()
|
|
@ -1,23 +0,0 @@
|
|||||||
#!/home/ilya/git/jeancloud-website/blog/venv/bin/python
|
|
||||||
|
|
||||||
# $Id: rst2pseudoxml.py 4564 2006-05-21 20:44:42Z wiemann $
|
|
||||||
# Author: David Goodger <goodger@python.org>
|
|
||||||
# Copyright: This module has been placed in the public domain.
|
|
||||||
|
|
||||||
"""
|
|
||||||
A minimal front end to the Docutils Publisher, producing pseudo-XML.
|
|
||||||
"""
|
|
||||||
|
|
||||||
try:
|
|
||||||
import locale
|
|
||||||
locale.setlocale(locale.LC_ALL, '')
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
|
|
||||||
from docutils.core import publish_cmdline, default_description
|
|
||||||
|
|
||||||
|
|
||||||
description = ('Generates pseudo-XML from standalone reStructuredText '
|
|
||||||
'sources (for testing purposes). ' + default_description)
|
|
||||||
|
|
||||||
publish_cmdline(description=description)
|
|
@ -1,24 +0,0 @@
|
|||||||
#!/home/ilya/git/jeancloud-website/blog/venv/bin/python
|
|
||||||
|
|
||||||
# $Id: rst2s5.py 4564 2006-05-21 20:44:42Z wiemann $
|
|
||||||
# Author: Chris Liechti <cliechti@gmx.net>
|
|
||||||
# Copyright: This module has been placed in the public domain.
|
|
||||||
|
|
||||||
"""
|
|
||||||
A minimal front end to the Docutils Publisher, producing HTML slides using
|
|
||||||
the S5 template system.
|
|
||||||
"""
|
|
||||||
|
|
||||||
try:
|
|
||||||
import locale
|
|
||||||
locale.setlocale(locale.LC_ALL, '')
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
|
|
||||||
from docutils.core import publish_cmdline, default_description
|
|
||||||
|
|
||||||
|
|
||||||
description = ('Generates S5 (X)HTML slideshow documents from standalone '
|
|
||||||
'reStructuredText sources. ' + default_description)
|
|
||||||
|
|
||||||
publish_cmdline(writer_name='s5', description=description)
|
|
@ -1,27 +0,0 @@
|
|||||||
#!/home/ilya/git/jeancloud-website/blog/venv/bin/python
|
|
||||||
|
|
||||||
# $Id: rst2xetex.py 7847 2015-03-17 17:30:47Z milde $
|
|
||||||
# Author: Guenter Milde
|
|
||||||
# Copyright: This module has been placed in the public domain.
|
|
||||||
|
|
||||||
"""
|
|
||||||
A minimal front end to the Docutils Publisher, producing Lua/XeLaTeX code.
|
|
||||||
"""
|
|
||||||
|
|
||||||
try:
|
|
||||||
import locale
|
|
||||||
locale.setlocale(locale.LC_ALL, '')
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
|
|
||||||
from docutils.core import publish_cmdline
|
|
||||||
|
|
||||||
description = ('Generates LaTeX documents from standalone reStructuredText '
|
|
||||||
'sources for compilation with the Unicode-aware TeX variants '
|
|
||||||
'XeLaTeX or LuaLaTeX. '
|
|
||||||
'Reads from <source> (default is stdin) and writes to '
|
|
||||||
'<destination> (default is stdout). See '
|
|
||||||
'<http://docutils.sourceforge.net/docs/user/latex.html> for '
|
|
||||||
'the full reference.')
|
|
||||||
|
|
||||||
publish_cmdline(writer_name='xetex', description=description)
|
|
@ -1,23 +0,0 @@
|
|||||||
#!/home/ilya/git/jeancloud-website/blog/venv/bin/python
|
|
||||||
|
|
||||||
# $Id: rst2xml.py 4564 2006-05-21 20:44:42Z wiemann $
|
|
||||||
# Author: David Goodger <goodger@python.org>
|
|
||||||
# Copyright: This module has been placed in the public domain.
|
|
||||||
|
|
||||||
"""
|
|
||||||
A minimal front end to the Docutils Publisher, producing Docutils XML.
|
|
||||||
"""
|
|
||||||
|
|
||||||
try:
|
|
||||||
import locale
|
|
||||||
locale.setlocale(locale.LC_ALL, '')
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
|
|
||||||
from docutils.core import publish_cmdline, default_description
|
|
||||||
|
|
||||||
|
|
||||||
description = ('Generates Docutils-native XML from standalone '
|
|
||||||
'reStructuredText sources. ' + default_description)
|
|
||||||
|
|
||||||
publish_cmdline(writer_name='xml', description=description)
|
|
@ -1,25 +0,0 @@
|
|||||||
#!/home/ilya/git/jeancloud-website/blog/venv/bin/python
|
|
||||||
|
|
||||||
# $Id: rstpep2html.py 4564 2006-05-21 20:44:42Z wiemann $
|
|
||||||
# Author: David Goodger <goodger@python.org>
|
|
||||||
# Copyright: This module has been placed in the public domain.
|
|
||||||
|
|
||||||
"""
|
|
||||||
A minimal front end to the Docutils Publisher, producing HTML from PEP
|
|
||||||
(Python Enhancement Proposal) documents.
|
|
||||||
"""
|
|
||||||
|
|
||||||
try:
|
|
||||||
import locale
|
|
||||||
locale.setlocale(locale.LC_ALL, '')
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
|
|
||||||
from docutils.core import publish_cmdline, default_description
|
|
||||||
|
|
||||||
|
|
||||||
description = ('Generates (X)HTML from reStructuredText-format PEP files. '
|
|
||||||
+ default_description)
|
|
||||||
|
|
||||||
publish_cmdline(reader_name='pep', writer_name='pep_html',
|
|
||||||
description=description)
|
|
@ -1,8 +0,0 @@
|
|||||||
#!/home/ilya/git/jeancloud-website/blog/venv/bin/python
|
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
import re
|
|
||||||
import sys
|
|
||||||
from unidecode.util import main
|
|
||||||
if __name__ == '__main__':
|
|
||||||
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
|
||||||
sys.exit(main())
|
|
@ -1,11 +0,0 @@
|
|||||||
#!/home/ilya/git/jeancloud-website/blog/venv/bin/python
|
|
||||||
|
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
import re
|
|
||||||
import sys
|
|
||||||
|
|
||||||
from wheel.cli import main
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
|
|
||||||
sys.exit(main())
|
|
@ -1 +0,0 @@
|
|||||||
/usr/include/python3.8
|
|
@ -1 +0,0 @@
|
|||||||
/usr/lib/python3.8/__future__.py
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1 +0,0 @@
|
|||||||
/usr/lib/python3.8/_bootlocale.py
|
|
@ -1 +0,0 @@
|
|||||||
/usr/lib/python3.8/_collections_abc.py
|
|
@ -1 +0,0 @@
|
|||||||
/usr/lib/python3.8/_dummy_thread.py
|
|
@ -1 +0,0 @@
|
|||||||
/usr/lib/python3.8/_weakrefset.py
|
|
@ -1 +0,0 @@
|
|||||||
/usr/lib/python3.8/abc.py
|
|
@ -1 +0,0 @@
|
|||||||
/usr/lib/python3.8/base64.py
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user