tomerfiliba / agnos

Agnos - The Agnostic RPC Framework
http://agnos.sourceforge.net
Other
14 stars 7 forks source link

agnosc.bat only works if it's located in the cwd #52

Closed GeekOffTheStreet closed 12 years ago

GeekOffTheStreet commented 12 years ago

Suggest changing to:

@echo off
cd /d %~dp0
python agnosc %*

Before:

c:\TEMP\wspace2\SimService>agnosc
python: can't open file './agnosc': [Errno 2] No such file or directory

After:

c:\TEMP\wspace2\SimService>agnosc
Usage: agnosc [options]
tomerfiliba commented 12 years ago

thanks

GeekOffTheStreet commented 12 years ago

Probably should change to:

@echo off
python %~dp0\agnosc %*

The previous snippet I posted would change the shells current working directory if the compile failed.

tomerfiliba commented 12 years ago

care to send a pull request?