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

Welcome to IWETHEY!

New Not sure what you mean...
I'm explicitly performing local file I/O which the designers have tried to protect me from by not supplying me with the current working directory.


?
Regards,

-scott anderson

"Welcome to Rivendell, Mr. Anderson..."
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)

Coffee, tea, or me?
73 ms