def using_env(e):
print "Using %s = %s" % (e, os.environ[e])
+def print_env(options):
+ if not options.verbose:
+ return
+
+ if sys.platform == "darwin":
+ using_env("DYLD_FRAMEWORK_PATH")
+ using_env("DYLD_LIBRARY_PATH")
+
+ using_env("PATH")
+ print "Using sys.path =", sys.path
if sys.platform == "darwin":
# for testing on mac os x 10.5 - baris
os.environ["DYLD_LIBRARY_PATH"] = DYLD_LIBRARY_PATH
os.environ["DYLD_FRAMEWORK_PATH"] = DYLD_FRAMEWORK_PATH
- using_env("PATH")
- using_env("DYLD_FRAMEWORK_PATH")
- using_env("DYLD_LIBRARY_PATH")
- print "Using sys.path =", sys.path
-
elif sys.platform == "linux2":
sys.path.extend(["/usr/share", "/usr/share/sface"])
- using_env("PATH")
- print "Using sys.path =", sys.path
-
from sface.mainwindow import MainWindow
from sface.config import config
-
def main(args):
app = QApplication(args)
app.setStyleSheet('''
(options,args)=parser.parse_args()
config.update_from_OptionParser(options)
config.display("After command-line")
+ print_env(options)
main(sys.argv)