Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Python as a Service Registry Key

Status
Not open for further replies.

backpacker299

Programmer
Jul 6, 2006
2
US
I am running a python script as a service and I need to be able to store the log file in a folder other than the one the script executes from, but I cannot hard code the folder into the script. Does anyone know a Registry Key or a different fix for my problem?

Thanks in advance
 
You can store log_file_path in
- your own registry key or
- .ini-file or
- environment variable

then in your app read this path info
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top