#from RPi import GPIO

#!/usr/bin/env python
# -*- coding: utf-8 -*-
import RPi.GPIO as GPIO
import ConfigParser
from time import sleep
 
config = ConfigParser.RawConfigParser()           
config.read("/home/pi/global_config.conf")         
pin_number = config.getint("relay_pins", "relay1") 

print "use pin:"+str(pin_number)
 
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)            
GPIO.setup(pin_number, GPIO.OUT)   
GPIO.output(pin_number, GPIO.HIGH)