Commit b09f4396044a8cd39ef7643f46e23efe17f90517

Authored by selurvedu
1 parent c0cdaf8a

Rewrite local_path_to_file()

... ... @@ -189,9 +189,7 @@ def Add_data_for_GUI_FrontEnds(INITIAL_TENDER_DATA):
189 189 return INITIAL_TENDER_DATA
190 190
191 191 def local_path_to_file(file_name):
192   - path = os.getcwd()
193   - path = path.split("brokers", 1)[0] + "/src/op_robot_tests/op_robot_tests/tests_files/documents/" + file_name
194   - return path
  192 + return os.path.join(os.path.dirname(__file__), 'documents', file_name)
195 193
196 194 ## E-Tender
197 195 def convert_date_to_etender_format(isodate):
... ...
Please register or login to post a comment