felixlu / jap

Automatically exported from code.google.com/p/jap
0 stars 0 forks source link

Local functions required #29

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
There are two useful functions in wallproxy-plugins 
(http://code.google.com/p/wallproxy-plugins/),not say the new wallproxy.
1.Find the config file and relate files at the same path of the main 
application file. So do not need to cd to the path then run the app. It's 
useful for Linux system to use one command in the terminal to run.
python2 /path/to/wallproxy-plugins/startup.py
Moreover, it's easy to set a autostart application that just use the same 
command, e.g. in Xfce.
For JAP, I have to make a sh file to autostart.
e.g. JAP_WS_LOCAL.sh
  cd /path/to/jap/
  python2 JAP_WS_LOCAL.py
If just run 'python2 /path/to/jap/JAP_WS_LOCAL.py', it will stop because the 
config file is not found.
2.Reinitialize the application immediately once the config file changed.So do 
not need to stop the app then change the config file. It's useful to change GAE 
appid or Google domain/IP.
Hope to add this two fuctions to JAP and APPP.
Thanks.

Original issue reported on code.google.com by westmin...@gmail.com on 7 Feb 2013 at 5:02

GoogleCodeExporter commented 8 years ago
I'll go home tomorrow for Chinese New Year, and will not surf the Internet for 
one week.
Happy new year to everyone!

Original comment by westmin...@gmail.com on 7 Feb 2013 at 5:12

GoogleCodeExporter commented 8 years ago
Thanks for the suggestions!

Happy Chinese New Year!!

Original comment by jeroen.v...@gmail.com on 7 Feb 2013 at 7:02