Re: spaces at ends of filenames or directory names on Win32

2006-02-25 Thread drobinow
For example... tell windows to move a file named ' XXX ' (one space
before and one space after the filename). Windows will complain that
file 'XXX' does not exist. It's correct of course, 'XXX' does not
exist,
but ' XXX ' does indeed exist.

Can anyone rescue me from this madness :(
-
 Please post your Python code.  I don't see the problem you're
describing.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: pyfltk2 tutorial

2005-12-29 Thread drobinow

Siraj Kutlusan wrote:
> I want to use pyfltk2 because of its simplicity but there seem to be no
> tutorials done for it. Could anyone give me a link to one please?
  I think pyfltk is even simpler.  There's a tutorial included at the
URL below

http://junk.mikeasoft.com/pyfltkmanual.pdf

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: os.system(cmd) isn't working

2005-06-23 Thread drobinow
 If firefox is not your default browser,
os.system(r'"cd c:\Program Files\Mozilla Firefox & firefox "' +
'"www.blendertechnologies.com"')

works for me.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: PyEphem on Win32 -- 2nd try

2005-02-24 Thread drobinow

[EMAIL PROTECTED] wrote:
> Has anyone run the PyEphem ephemeris application under WinXP?
> http://rhodesmill.org/brandon/projects/pyephem.html
> I have compiled it with Visual Studio 6 and it crashes Python with a
> simple
>
> >>> import ephem
> >>> ephem.date('1994/7/16')
>
> Identical code works fine under Linux. I suspect that the problem has
> to do with a parser built into the c shell for the c code that the
> app wraps around.  However, I am not good enough at c to spot the
> error.

 I had the same problem with Python 2.4. Dates appear to need a
trailing space.

  ephem.date('1994/7/16 ')
works for me.

I believe the following code in ephem.c is responsible:
 if (conversions == -1 || !conversions ||
 (conversions == 1 && s[dchars] != '\0') ||
 (conversions == 2 && s[tchars] != '\0')) {
  PyErr_SetString(PyExc_ValueError,
  "your date string does not seem to have "
  "year/month/day followed optionally by "
  "hours:minutes:seconds");

This may be a VC versus gcc issue. It would be interesting to see if a
Mingw compile would help here.

-- 
http://mail.python.org/mailman/listinfo/python-list