3292
Comment:
|
611
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
#acl_rights_default = "All:read" #format wiki #language en #pragma section-numbers off = py2exe = py2exe is a [http://www.python.org/ Python] [http://www.python.org/doc/current/dist/ Distutils] extension which converts Python scripts into executable Windows programs, able to run without requiring a Python installation. |
# cmd.py # ^^^^^^ # Mimics the windows command line. Good if the system admin has locked it off. # Made for Windows XP |
Line 8: | Line 6: |
Development is hosted at [http://sourceforge.net/projects/py2exe/ SourceForge]. You can find the [https://lists.sourceforge.net/lists/listinfo/py2exe-users mailing list], [http://sourceforge.net/cvs/?group_id=15583 CVS], and [http://sourceforge.net/project/showfiles.php?group_id=15583 downloads] there. | import os |
Line 10: | Line 8: |
py2exe was originally developed by ThomasHeller who still makes contributions, JimmyRetzlaff is the current maintainer, and MarkHammond also makes regular contributions. Code contributions are always welcome from the community and many people provide invaluable help on the mailing list and the Wiki. py2exe is used by [http://www.bittorrent.com BitTorrent], [http://spambayes.sourceforge.net/windows.html SpamBayes], and thousands more - py2exe averages over 5,000 downloads per month. In an effort to limit Wiki spam, this front page is not editable. Feel free to edit other pages with content relevant to py2exe. You will need an account to edit (but not to read) and your account information will be used only for the purposes of administering this Wiki. The old [http://www.py2exe.org/old py2exe] web site is still available until that information has found its way into this wiki. == Starting Points == * [http://sourceforge.net/project/showfiles.php?group_id=15583 Download py2exe from SourceForge] * ["News"]: information about the most recent releases * ["Tutorial"]: the basics of creating a Windows executable * ["FAQ"]: What does py2exe actually do and what are all those files? * GeneralTipsAndTricks: general tips for working with special situations * WorkingWithVariousPackagesAndModules: many just work, others need more handling * NonEnglish: read about py2exe in languages like Spanish, Korean, ... * [https://lists.sourceforge.net/lists/listinfo/py2exe-users Get help on the mailing list] * RecentChanges: see where people are currently working * WikiSandBox: feel free to change this page and experiment with editing * FindPage: search or browse the database in various ways * SyntaxReference: quick access to wiki syntax * SiteNavigation: get an overview over this site and what it contains * ProblemsToBeFixed == How to use this site == A Wiki is a collaborative site, anyone can contribute and share: * Edit any page by pressing '''[[GetText(Edit)]]''' at the top or the bottom of the page. The FrontPage is not editable and you must be logged in to '''[[GetText(Edit)]]''' other pages. This is to avoid Wiki spam. * Create a link to another page with joined capitalized words (like WikiSandBox) or with {{{["quoted words in brackets"].}}} * Search for page titles or text within pages using the search box at the top of any page. * See HelpForBeginners to get you going, HelpContents for all help pages. To learn more about what a WikiWikiWeb is, read about MoinMoin:WhyWikiWorks and the MoinMoin:WikiNature. Also, consult the HelpMiscellaneous/FrequentlyAskedQuestions page. |
command = "" wd = os.getcwd() print "Shell Window Replacement by fatalGlory" print "^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" print "" while command != "exit": command = raw_input("" + wd + ">") if command.split(" ")[0] == "cd": try: os.chdir(command.split(" ")[1]) wd = os.getcwd() except: print "Bad command or file name." else: cmd2 = os.popen(command) print cmd2.read() |
import os
command = "" wd = os.getcwd() print "Shell Window Replacement by fatalGlory" print "" print "" while command != "exit":
command = raw_input("" + wd + ">") if command.split(" ")[0] == "cd":
- try:
- os.chdir(command.split(" ")[1]) wd = os.getcwd()
- print "Bad command or file name."
- cmd2 = os.popen(command) print cmd2.read()
- try: