Re: [gtk-osx-users] gobject-introspection g-ir-scanner not working (stable moduleset)



2012/1/10 John Ralls <jralls ceridwen us>

On Jan 10, 2012, at 9:10 AM, Jesse van den Kieboom wrote:

Nope, /Volumes/RAID1/local/gtk-foo (several, to test different builds) and /Volumes/RAID1/Gnucash-Build/Gnucash-(2.4|svn)

If python was lower-casing paths it would be even more of a problem on case-sensitive file systems like ext3. Something else is going on. Are you sure you're not passing in lower-cased paths in a config argument or environment variable somewhere?

The issue is this:

>>> os.getcwd()
'/users/jesse/gtk/10.4/source/enchant'

I don't know why the current working directory when retrieved from python is lowercase on my system, but it is.

Please remember to copy the list (use "Reply All").

sorry.
 

Weird. Is that a python you built yourself or Apple's?
Snow Leopard, native:
Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) 
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.getcwd()
'/Users/john'
Lion, native:
Python 2.7.1 (r271:86832, Jun 16 2011, 16:59:05) 
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.getcwd()
'/Users/john'
Gtk-OSX, SDK 10.5:
Python 2.7.2 (default, Oct 29 2011, 17:35:31) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.getcwd()
'/Users/john'


Native Snow Leopard:

Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) 
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.getcwd()
'/users/jesse'

Actually, it has nothing to do with python:

jesse@tsf-wpa-2-5230:~$ cat test.c
#include <stdio.h>
#include <unistd.h>

int main()
{
  char buf[1024];

  getwd (buf);

  printf ("%s\n", buf);

  return 0;
}

jesse@tsf-wpa-2-5230:~$ ./test
/users/jesse

Somehow, hfs must encode an alias, or some information to make that return lowercase. Actually, doing 'sudo mv /users /Users' fixed the "issue" and now I get uppercase /Users again. Go figure...


Jesse


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]