From: macnerd <ma...@re...> - 2002-03-12 20:24:53
|
I thought of a down and dirty idea that is totally Mac-like. If we do = an Environment interface I would like to share it amongst Perl and Python users, and = get them to=20 buy into it. The ol' System stores everything in the System Folder. This includes = Preferences and Extensions as well as Control Panels. The MacPerl folks have store environment variables inside a preference = file inside the System folder, more specifically {System Preferences}:"MacPerl 5 = Preferences",=20 where System Preferences refers to the "blessed" or active running = System folder. Inside the preferences there are some resources (PFNT, PPRF, STR#, and = TFSS).=20 There is one string of ID #129, which simply store the environment = variables like=20 this: USER=3D TMPDIR=3DClassical:Temporary Items: *Classical is my drive name When I ran DeRez in MPW I got data 'STR#' (129) { $"0002 0555 5345 523D 2154 4D50 4449 523D" /* = ...USER=3D!TMPDIR=3D */ $"436C 6173 7369 6361 6C3A 5465 6D70 6F72" /* = Classical:Tempor */ $"6172 7920 4974 656D 733A" /* ary = Items: */ };=20 I was thinking that maybe we can create a preference file and simply = call it ENVIRONMENT, which would then include these strings in a similar = pattern. Does this sound good? |