> When I try to run login.rb from a sub folder, it fails on "require
> 'variables.rb'", as it's looking in the current directory, which is a
> folder down from variables.rb.
>
> Is there a way to let login.rb know where variables.rb is at, without
> putting in a hard path?

I found something online that mentioned sending DOS commands, so now
my loads in the subfolders look like this (and work)

Dir.chdir("..")
load 'login.rb'
Dir.chdir("Tests")

It moves me up to run the login script, then back down to run the rest
of the test.

Thanks,
--
Michael Moore
-------------------------------
www.stuporglue.org -- Donate your used computer to a student that needs it.
www.ubuntu-utah.org -- In Utah? Interested in Ubuntu? Come join us.

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to