Re: [sympy] How to access specific files in the sympy directories

2018-06-17 Thread nisha prasad
Hi.. How to do matrix operations in finite field in SymPy. Can anyone help Nisha Nisha T M On Sun, Jun 17, 2018 at 3:33 AM, Jason Moore wrote: > Something like: > > dir_of_this_file = os.path.dirname(os.path.realpath(__file__)) > test_data_file_path = os.path.join(dir_of_this_file, 'test

Re: [sympy] How to access specific files in the sympy directories

2018-06-16 Thread Jason Moore
Something like: dir_of_this_file = os.path.dirname(os.path.realpath(__file__)) test_data_file_path = os.path.join(dir_of_this_file, 'tests', 'test_examples', 'expected_output1.txt') with open(test_data_file_path) as f: # do something with the file handle moorepants.info +01 530-601-9791 On S

Re: [sympy] How to access specific files in the sympy directories

2018-06-16 Thread Jason Moore
This shows how to get absolute paths to files based on the location of the file where your python code is in: https://stackoverflow.com/questions/5137497/find-current-directory-and-files-directory I posted this to your PR. Do you have specific questions about the stackoverflow solution? It should

[sympy] How to access specific files in the sympy directories

2018-06-14 Thread Nikhil Pappu
I have to read and write to files which are located in sympy/parsing/tests/test_examples in my test file test_autolev.py. This is the kind of code I am using in test_autolev.py directory = "sympy/parsing/tests/test_examples/" parse_autolev(os.path.join(*(directory+inFileName).split('/')), os.