[Bf-python] Problems
Peter Amstutz
tetron at interreality.org
Wed Jul 30 23:36:17 CEST 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wed, 30 Jul 2003, Willian Padovani Germano wrote:
> For maximum speed, Blender would scan the dir once on startup, put all
> header info in a file there -- like menu.txt or whatever -- and use
> directly this file to generate the menu everytime it was needed. Of
> course, there'd be a command in the scripts menu to force scanning again
> the scripts/ dir without having to re-start Blender.
Incidentally, you can use the system call fstat() on a directory to get
its last modified time, which will be the last time that the contents of
the directory changed (a file was added/deleted/renamed [1]). I doubt it
would be particularly expensive to check this each time the scripts menu
is opened and re-scan the directory as necessary. Certainly it would be a
bit more convenient for users :-)
[1] It may even be updated every time any file in the directory is changed
as well, but I'm not sure.
[ Peter Amstutz ][ amstutz at cs.umass.edu ][ tetron at interreality.org ]
[Lead Programmer][Interreality Project][Virtual Reality for the Internet]
[ VOS: Next Generation Internet Communication][ http://interreality.org ]
[ http://interreality.org/~tetron ][ pgpkey: pgpkeys.mit.edu 18C21DF7 ]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE/KDpcaeHUyhjCHfcRAsxhAJsGK0YyyFXeNzgr6TzgxU3NtQDtCgCeMXhZ
Fyt7psVSh8MsrV+T5frrvkM=
=dmsz
-----END PGP SIGNATURE-----
More information about the Bf-python
mailing list