[ create a new paste ] login | about

Link: http://codepad.org/4eTH1pU8    [ raw code | fork ]

Python, pasted on Apr 26:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import os

SRC_PATH = os.path.dirname(__file__)
PYTHON_RUNTIME = 'c:\\python27\\python'
INSTALL_FMT = '%s %s install'

print(SRC_PATH)

for fname in os.listdir(SRC_PATH):
    path = os.path.join(SRC_PATH, fname)
    if os.path.isdir(path) and fname.startswith('hachoir'):
        os.chdir(path)
        setup_py = os.path.join(path, "setup.py")
        install_cmd = INSTALL_FMT % (PYTHON_RUNTIME, setup_py)
        print(install_cmd)
        os.system(install_cmd)
        
        


Create a new paste based on this one


Comments: