19 |
# write to the Free Software Foundation, Inc., 59 Temple Place |
# write to the Free Software Foundation, Inc., 59 Temple Place |
20 |
# - Suite 330, Boston, MA 02111-1307, USA. |
# - Suite 330, Boston, MA 02111-1307, USA. |
21 |
|
|
|
import os |
|
|
import sys |
|
|
|
|
|
if sys.platform == "win32": |
|
|
if __name__ == "__main__": |
|
|
_BASE = os.path.abspath (os.path.join (os.path.dirname (sys.argv[0]), "..")) |
|
|
_newpath = os.path.abspath (os.path.dirname (sys.argv[0])) |
|
|
if os.environ.has_key ("PATH"): |
|
|
_newpath = _newpath + ";" + os.environ ["PATH"] |
|
|
os.environ ["PATH"] = _newpath |
|
|
else: |
|
|
_BASE = os.path.abspath (os.path.join (os.path.dirname (__file__), "..")) |
|
|
os.putenv ("PYTHONCASEOK","1") |
|
|
if os.path.isdir (os.path.join (_BASE, "extras")): |
|
|
sys.path.append (os.path.join (_BASE, "extras")) |
|
|
|
|
22 |
from gnue.reports.client.GRRun import GRRun |
from gnue.reports.client.GRRun import GRRun |
23 |
|
|
24 |
if __name__ == '__main__': |
if __name__ == '__main__': |