How does Python (or MonkeyRunner) locate imported modules?
I previously asked about an error I get when running a monkeyrunner
script from Git Bash. I still haven't resolved the issue and decided to try running it from the Windows 7 command line. I cd
to the directory containing my .py
files and run
> monkeyrunner screenshots.py
Can't open specified script file
Usage: monkeyrunner [options] SCRIPT_FILE
-s MonkeyServer IP Address.
-p MonkeyServer TCP Port.
-v MonkeyServer Logging level (ALL, FINEST, FINER, FINE, CONFIG, INFO, WARNING, SEVERE, OFF)
screenshots.py
is indeed in the current directory. Why can't monkeyrunner find it? What do I need to do to fix this to run on Windows 7?