Awesome, I knew it was something easy! On Thu, May 31, 2012 at 3:19 PM, Ole Trenner <o...@jayotee.de> wrote:
> You can change the current working directory from within python: > > >>> import os > >>> os.chdir('some/path') > > You can find the directory of your current module by inspecting the > __file__ attribute: > > >>> basedir = os.path.abspath(os.path.dirname(__file__)) > > > > Ole. > > > > > Am 31.05.2012 um 17:18 schrieb Shannon Cruey: > > > Hey everyone, I'm sure this is stupid but it's one of those "can't see > the forest for the trees" moments. > > > > I'm building a production environment (finally), and our startup scripts > run in a different directory. (my web.py service is one of many services > managed by a central startup script, crontab, etc.) > > > > I'm seeing if I don't actually start my application in the web root, all > sorts of strangeness happens. Specifically, 404 not founds from the static > directory. More specifically - css, images and script from my static > directory are served, but .html files are not. > > > > I'm under a time crunch, so I gotta move on. Anyone have any ideas? > > > > Thanks... S > > > > -- > > You received this message because you are subscribed to the Google > Groups "web.py" group. > > To post to this group, send email to webpy@googlegroups.com. > > To unsubscribe from this group, send email to > webpy+unsubscr...@googlegroups.com. > > For more options, visit this group at > http://groups.google.com/group/webpy?hl=en. > > -- > Ole Trenner > <o...@jayotee.de> > > > > > -- > You received this message because you are subscribed to the Google Groups > "web.py" group. > To post to this group, send email to webpy@googlegroups.com. > To unsubscribe from this group, send email to > webpy+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/webpy?hl=en. > > -- You received this message because you are subscribed to the Google Groups "web.py" group. To post to this group, send email to webpy@googlegroups.com. To unsubscribe from this group, send email to webpy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/webpy?hl=en.