from pirx import Settings, arg settings = Settings() settings.debug = arg('debug') print settings
from pirx import Settings, path, arg settings = Settings() settings.static_root = path('static/') settings.media_root = path('media/') if arg('debug') else '/var/media/' print settings