Read my post again,you should not save in python folder and you still have the long path.
I make it simple and have python in this path
In my first link ,see that i have added
If i save
I make it simple and have python in this path
C:\python37
,as i show in install link.In my first link ,see that i have added
E:\\div_code
to path,just a place i have my python files.If i save
selfwrittenmodule.py
in E:\\div_code
,it will work from anywhere in cmd or cmder as i use.# selfwrittenmodule.py def f1(x): x = x + 1 return xNow can i test dos not matter which folder i am in.
C:\Users\Tom λ ptpython >>> from selfwrittenmodule import f1 >>> f1(42) 43