IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New The docs I've read say it was intentional
os.getcwd, for example, doesn't return the directory my script is in, but instead returns the directory that the... uh... "compiled" script is running in, which is much closer to the interpreter's location. Doesn't have anything to do with my website dir structure, IOW. Several sites have commented that this is by design: that the "designers of Python" are helping me not shoot myself in the foot.

But the whole point of my app is to be able to drop an image in a folder and have it show up on the web page without modifying any source code.

Many fears are born of stupidity and ignorance -
Which you should be feeding with rumour and generalisation.
BOfH, 2002 "Episode" 10
New Well, for *any* script being run 'automatically'
You can't assume the CWD.

I've always put the directories I'm interested in either in the script or an INI file of some sort.

FWIW, I've never heard the bit about shooting yourself in the foot, unless that's simply an acknowledgement of the dodgyness of cwd as mentioned above. *shrug*
Regards,

-scott anderson

"Welcome to Rivendell, Mr. Anderson..."
     Wrote my first python program yesterday :) - (tseliot) - (7)
         Not sure what you mean... - (admin) - (2)
             The docs I've read say it was intentional - (tseliot) - (1)
                 Well, for *any* script being run 'automatically' - (admin)
         Was just pondering what to write that in - (drewk) - (1)
             *snort* Mine is a port of my previous Java version :D -NT - (tseliot)
         Re: Wrote my first python program yesterday :) - (pwhysall)
         Now that I've sanitized it, you can see it in action - (tseliot)

I said, "What's your sign?" She said, "Aquarium." I said, "Great! Let's get tanked!"
42 ms