qsub python import
Question: I'm running a job on the cluster for the first time. I run it with the
following command:

    
    
    qsub -cwd -S /usr/bin/python myScript.py
    

I have a python script that starts with:

    
    
    import time
    import anotherScript
    

The error I get:

    
    
    Traceback (most recent call last):
      File "/opt/sge62/default/spool/hpc01/job_scripts/487174", line 11, in <module>
        import anotherScript
    ImportError: No module named anotherScript
    

the `anotherScript.py` is in the same directory as `myScript.py`.

What can I do to solve the problem? would appreciate any help


Answer: well, problem was solved by `sys.path.append(currentWorkingDirectory)`.
However, it's definitely not a nice way.

