Changeset 32e2d9d563d64b046553036f3c0e2aecdd027765
- Timestamp:
- 02/28/07 23:02:43
(2 years ago)
- Author:
- Jason Michalski <armooo@armooo.net>
- git-committer:
- Jason Michalski <armooo@armooo.net> 1172725363 +0000
- git-parent:
[2064f22527ab2467b4d9100a5af1acf7bd7e5771]
- git-author:
- Jason Michalski <armooo@armooo.net> 1172725363 +0000
- Message:
pyTivo
- Added the Config.py to fix files path when running as a windows service.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r391f266 |
r32e2d9d |
|
| 1 | 1 | import subprocess, shutil, os, re, sys, ConfigParser |
|---|
| 2 | 2 | |
|---|
| 3 | | config = ConfigParser.ConfigParser() |
|---|
| 4 | | config.read(os.path.join(os.getcwd(), 'pyTivo.conf')) |
|---|
| | 3 | from Config import config |
|---|
| | 4 | |
|---|
| 5 | 5 | FFMPEG = config.get('Server', 'ffmpeg') |
|---|
| 6 | 6 | #SCRIPTDIR = os.path.dirname(__file__) |
|---|
| rb02cc7d |
r32e2d9d |
|
| 2 | 2 | |
|---|
| 3 | 3 | |
|---|
| 4 | | import beacon, httpserver, ConfigParser, os, sys |
|---|
| | 4 | import beacon, httpserver, os, sys |
|---|
| 5 | 5 | |
|---|
| 6 | | config = ConfigParser.ConfigParser() |
|---|
| 7 | | p = os.path.dirname(__file__) |
|---|
| 8 | | config.read(os.path.join(p, 'pyTivo.conf')) |
|---|
| | 6 | from Config import config |
|---|
| 9 | 7 | |
|---|
| 10 | 8 | port = config.get('Server', 'Port') |
|---|
| r49e3d00 |
r32e2d9d |
|
| 17 | 17 | import sys, os |
|---|
| 18 | 18 | |
|---|
| | 19 | from Config import config |
|---|
| | 20 | |
|---|
| 19 | 21 | p = os.path.dirname(__file__) |
|---|
| 20 | 22 | |
|---|
| … | … | |
| 22 | 24 | sys.stdout = f |
|---|
| 23 | 25 | sys.stderr = f |
|---|
| 24 | | print 'test' |
|---|
| 25 | 26 | |
|---|
| 26 | | config = ConfigParser.ConfigParser() |
|---|
| 27 | | config.read( os.path.join(p, 'pyTivo.conf') ) |
|---|
| 28 | 27 | |
|---|
| 29 | 28 | port = config.get('Server', 'Port') |
|---|