Python Won’t Take Command Line Arguments - Windows Vista

If you use python via the command line in Windows vista, you’ll notice that it won’t accept command line arguments if you run a script.

For example this won’t work: python myscript.py argument1 argument2

Your python script won’t get the arguments.

The fix for Windows Vista is:

  1. Get an application called: File Type Doctor
  2. Find the .py extension in the application
  3. Edit the Open action (add it if it doesn’t exist)
  4. Select the right python.exe file for “the application to carry
    Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
    • Digg
    • DZone
    • del.icio.us
    • Technorati
    • Furl
    • Facebook
    • Google
    • Mixx
    • Sphinn
    • StumbleUpon
    Posted at 11am on 12/21/08 | no comments | Filed Under: bug fix, programming, python, vista, windows read on

Ubuntu Server & Desktop Autologin

To autologin to Ubuntu Server you will need to get mingetty

sudo apt-get intall mingetty
Then you will want to edit /etc/event.d/tty1 and change the following

exec /sbin/getty 38400 tty1
to

exec /sbin/mingetty –autologin your_username tty1
To autologin to Ubuntu Desktop do the following
sudo gdmsetup
  • click on the Security tab
  • check Enable Automatic Login
  • Select the username from the drop down list and click Close


Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • DZone
  • del.icio.us
  • Technorati
  • Furl
  • Facebook
  • Google
  • Mixx
  • Sphinn
  • StumbleUpon
Posted at 3pm on 06/30/08 | no comments | Filed Under: Uncategorized read on

Skribit Suggestions

Monthly Archives

Categories