X7ROOT File Manager
Current Path:
/opt/alt/python33/lib/python3.3/site-packages/setuptools/command
opt
/
alt
/
python33
/
lib
/
python3.3
/
site-packages
/
setuptools
/
command
/
??
..
??
__init__.py
(553 B)
??
__pycache__
??
alias.py
(2.43 KB)
??
bdist_egg.py
(18.28 KB)
??
bdist_rpm.py
(1.98 KB)
??
bdist_wininst.py
(2.23 KB)
??
build_ext.py
(11.58 KB)
??
build_py.py
(8.24 KB)
??
develop.py
(6.3 KB)
??
easy_install.py
(71.01 KB)
??
egg_info.py
(13.98 KB)
??
install.py
(3.97 KB)
??
install_egg_info.py
(3.74 KB)
??
install_lib.py
(2.43 KB)
??
install_scripts.py
(2.02 KB)
??
register.py
(277 B)
??
rotate.py
(2.01 KB)
??
saveopts.py
(705 B)
??
sdist.py
(8.15 KB)
??
setopt.py
(4.95 KB)
??
test.py
(5.79 KB)
??
upload_docs.py
(6.65 KB)
Editing: saveopts.py
import distutils, os from setuptools import Command from setuptools.command.setopt import edit_config, option_base class saveopts(option_base): """Save command-line options to a file""" description = "save supplied options to setup.cfg or other config file" def run(self): dist = self.distribution settings = {} for cmd in dist.command_options: if cmd=='saveopts': continue # don't save our own options! for opt,(src,val) in dist.get_option_dict(cmd).items(): if src=="command line": settings.setdefault(cmd,{})[opt] = val edit_config(self.filename, settings, self.dry_run)
Upload File
Create Folder