kopia lustrzana https://github.com/ctjacobs/pyqso
Append PyQSO directory to path.
rodzic
b698900fe5
commit
9813344c58
|
@ -30,6 +30,11 @@ import os
|
||||||
import os.path
|
import os.path
|
||||||
import sys
|
import sys
|
||||||
import signal
|
import signal
|
||||||
|
|
||||||
|
# This will help Python find the PyQSO modules that need to be imported below.
|
||||||
|
pyqso_path = os.path.join(os.path.realpath(os.path.dirname(__file__)), os.pardir)
|
||||||
|
sys.path.insert(0, pyqso_path)
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
logging.basicConfig(level=logging.INFO)
|
logging.basicConfig(level=logging.INFO)
|
||||||
logging.info("PyQSO version 1.0.0")
|
logging.info("PyQSO version 1.0.0")
|
||||||
|
|
Ładowanie…
Reference in New Issue