Hi, Just to answer for a way to make *.py files executable: NOTE: Works on NT (NT4, W2K, WXP) I do not know if it works for Win98 but you can add PATHEXT to autoexec.bat to see: 1. Properties of "My Computer" 2. Advanced Tab 3. Environment Variables 4. Add ";.PY;.PYW" to PATHEXT system variable
Now the next dos prompt you open should allow you to type for example "spam" instead of "spam.py" to run a script. For you last question you quote hello = "...\n ... " This syntax is not correct to have actual carriage returns (not \n's) in a string you need to triple quote eg: #------------------------------ multiline1 = "This string \nhas \n 3 lines" multiline2 = """This string also has 3 lines""" print multiline1 print multiline2 #------------------------------ Mark -----Original Message----- From: Christoph Basedau [mailto:[EMAIL PROTECTED]] Sent: 11 January 2003 15:53 To: [EMAIL PROTECTED] Subject: config for python on win98 Hello I am just starting with python and have some questions. - Is there a way to make *.py-Files executables in an Win98-Environment (like *.bat or *.com). I am reading the docs from python.org but most notes on system config are for unix, so i couldn't find the answer there. - is there somethin like a .profile-file(unix) for windows that loads all default modules/options when running a py- script, maybe a bat/ini file? - What is python best in? I mean, what do you use it for: shell scripts, building guis, something else? - what is the best way to get an overwiew on what python is, what the modules do. - where on the web can i find lots of python scripts for windows with lots of comments suited for dummies and newbies? - if you know 'windows scripting' with vbs, js, wsf and so on will it be easy to port your scripts to py? does the COM-extension support the same subset of objects, classes and so on like wsh? or is it a differnt story? - In the docs (py2.3.1) there is an example with strings multiline (3.2.1 in Tutorial): hello = "This is a rather long string containing\n\ several lines of text just as you would do in C.\n\ Note that whitespace at the beginning of the line is\ significant." print hello this doesnt work for me, when i paste the code to the Python IDE (ActiveState): Error: name 'hello' is not defined what do i have to do to print hello? thanks for your ansers+time Christoph -- "War does not determine who is right - only who is left." Bertrand Russell _______________________________________________ ActivePython mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs Other options: http://listserv.ActiveState.com/mailman/listinfo/ActivePython _______________________________________________ ActivePython mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs Other options: http://listserv.ActiveState.com/mailman/listinfo/ActivePython