RE: [wtr-general] Relative path

2009-12-01 Thread Rahul S. Shetty
Hey Prince, Can you try this: $excel_path = Dir.getwd + '/Stores&Spares' (Use single quotes and front slash) Regards, Rahul S. Shetty -Original Message- From: Prince3105 [mailto:prince3...@gmail.com] Sent: Tuesday, December 01, 2009 10:51 AM To: Watir General Sub

RE: [wtr-general] Relative path

2009-11-30 Thread Rohan Ojha
Hi You can try this pathToTestFile = FileUtils::pwd basePath = pathToTestFile[0..(pathToTestFile.index('/Elcom'))] {Elcom is the base folder that is the outermost folder} $:.push(basePath+'Elcom/lib') {lib