Linux cpanel.rrshost.in 5.15.0-25-generic #25-Ubuntu SMP Wed Mar 30 15:54:22 UTC 2022 x86_64
Apache
: 109.123.238.221 | : 172.69.214.198
128 Domain
8.2.28
aev999
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
lib /
python3 /
dist-packages /
setuptools /
command /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
__init__.py
217
B
-rw-r--r--
alias.py
2.33
KB
-rw-r--r--
bdist_egg.py
16.21
KB
-rw-r--r--
bdist_rpm.py
1.15
KB
-rw-r--r--
build_clib.py
4.31
KB
-rw-r--r--
build_ext.py
12.9
KB
-rw-r--r--
build_py.py
8.55
KB
-rw-r--r--
develop.py
6.85
KB
-rw-r--r--
dist_info.py
960
B
-rw-r--r--
easy_install.py
85.91
KB
-rw-r--r--
egg_info.py
25.52
KB
-rw-r--r--
install.py
4.79
KB
-rw-r--r--
install_egg_info.py
3.12
KB
-rw-r--r--
install_lib.py
4.92
KB
-rw-r--r--
install_scripts.py
2.53
KB
-rw-r--r--
launcher manifest.xml
628
B
-rw-r--r--
py36compat.py
4.83
KB
-rw-r--r--
register.py
468
B
-rw-r--r--
rotate.py
2.08
KB
-rw-r--r--
saveopts.py
658
B
-rw-r--r--
sdist.py
6.26
KB
-rw-r--r--
setopt.py
4.97
KB
-rw-r--r--
test.py
7.9
KB
-rw-r--r--
upload.py
462
B
-rw-r--r--
upload_docs.py
7.05
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : alias.py
from distutils.errors import DistutilsOptionError from setuptools.command.setopt import edit_config, option_base, config_file def shquote(arg): """Quote an argument for later parsing by shlex.split()""" for c in '"', "'", "\\", "#": if c in arg: return repr(arg) if arg.split() != [arg]: return repr(arg) return arg class alias(option_base): """Define a shortcut that invokes one or more commands""" description = "define a shortcut to invoke one or more commands" command_consumes_arguments = True user_options = [ ('remove', 'r', 'remove (unset) the alias'), ] + option_base.user_options boolean_options = option_base.boolean_options + ['remove'] def initialize_options(self): option_base.initialize_options(self) self.args = None self.remove = None def finalize_options(self): option_base.finalize_options(self) if self.remove and len(self.args) != 1: raise DistutilsOptionError( "Must specify exactly one argument (the alias name) when " "using --remove" ) def run(self): aliases = self.distribution.get_option_dict('aliases') if not self.args: print("Command Aliases") print("---------------") for alias in aliases: print("setup.py alias", format_alias(alias, aliases)) return elif len(self.args) == 1: alias, = self.args if self.remove: command = None elif alias in aliases: print("setup.py alias", format_alias(alias, aliases)) return else: print("No alias definition found for %r" % alias) return else: alias = self.args[0] command = ' '.join(map(shquote, self.args[1:])) edit_config(self.filename, {'aliases': {alias: command}}, self.dry_run) def format_alias(name, aliases): source, command = aliases[name] if source == config_file('global'): source = '--global-config ' elif source == config_file('user'): source = '--user-config ' elif source == config_file('local'): source = '' else: source = '--filename=%r' % source return source + name + ' ' + command
Close