From: jerome <rom...@ya...> - 2012-10-16 17:13:17
|
I was wrong, it is not related to length ... It is a pointer issue (wrong path to filename!) These modules were not parsed and some of them do not have translation strings anymore... eg, the debug tool 'gramps/plugins/tool/populatesources.py'! I suppose this could be fixed by using a relative path (ie. to exclude root path: the location for the gramps directory). Thanks! Jérôme --- En date de : Mar 16.10.12, jerome <rom...@ya...> a écrit : > De: jerome <rom...@ya...> > Objet: Re: [Gramps-devel] 57 or more characters on full filename path ? > À: "Paul Franklin" <pf....@gm...> > Cc: gra...@li... > Date: Mardi 16 octobre 2012, 17h13 > Thank you, Paul. > > In fact, it should be something around top dir path (ex: > /home/blabla/trunk) + middle_path + subdir + filename. > > dir = os.getcwd() > topdir = os.path.normpath(os.path.join(dir, '..', > 'gramps')) > lentopdir = len(topdir) > root, subdir = os.path.split(dirpath) > > full_filename = os.path.join(dirpath, filename) > > which will return: > > /home/blabla/trunk/gramps/{path} > > but the expected path should be rather something like: > > ../gramps/{path} > > where {path} could use some different levels of directory. > > > The problem seems to be with "paths + filenames" having more > than 56 characters or 65 characters for full_filename > (../gramps). > > If it should be a coding problem, then I do not understand > why only a part of full_filename are properly handled by the > code. It should work or not! > Now, some lines are ignored and some others seem to be used. > :( > > > Jérôme > > > > --- En date de : Mar 16.10.12, Paul Franklin <pf....@gm...> > a écrit : > > > De: Paul Franklin <pf....@gm...> > > Objet: Re: [Gramps-devel] 57 or more characters on full > filename path ? > > À: "jerome" <rom...@ya...> > > Cc: gra...@li..., > pf....@gm... > > Date: Mardi 16 octobre 2012, 16h57 > > Hi Jerome, > > > > I have no way to run trunk yet (maybe in November), > > and I am no Python (or gramps) expert, but I did a > > Google search: > > > > python filename length limit OR limitation OR > > maximum > > > > and among the places it pointed me to was > > > > www.tutorialspoint.com/python/os_fstatvfs.htm > > > > where it pointed out that > > > > os.fstatvfs(fd) > > > > will return (among other things): > > > > f_namemax: maximum filename length > > > > so maybe you can look at the other Google places > > (or make similar searches) and see if there is some > > way to set such things? But at least maybe if you > > can query it you can test for it and so forth. > > > > Hope this helps. > > > > > > > > > > > > > ------------------------------------------------------------------------------ > Don't let slow site performance ruin your business. Deploy > New Relic APM > Deploy New Relic app performance management and know > exactly > what is happening inside your Ruby, Python, PHP, Java, and > .NET app > Try New Relic at no cost today and get our sweet Data Nerd > shirt too! > http://p.sf.net/sfu/newrelic-dev2dev > _______________________________________________ > Gramps-devel mailing list > Gra...@li... > https://lists.sourceforge.net/lists/listinfo/gramps-devel > |