can I override module search path in python -
To understand the Python module search path, I was trying to create a module that is already available in the standard library. . I have created a file 'math.py' in my current folder and its function definition is 'factorial' which takes an argument. Now I want that when I import the math module and use the 'functional' function, my function is implemented and the standard library is not the same. All documents say that the search path in 'sys.path' defines the order of search and gives the current directory the highest priority.
But when I run my code, I think my math module is not loading and my factual work is not called.
Where am I wrong
Here the file is mymain.py
Print "is going .......... ..... & gt; & gt; "Import Mathematics Print Mathematics (5)
This file is math.py (in directory similar to mymain.py)
Print "Mathematical Load" Def Factorial (I): I + 10
Come back and now I 'python mymain.py'