Move import statement

This commit is contained in:
Anders Ingemann 2014-04-07 21:46:46 +02:00
parent 1371f639ac
commit ef1ab7692a

View file

@ -13,9 +13,9 @@ def main():
Exception
"""
# Get the commandline arguments
import os
args = get_args()
# Require root privileges, except when doing a dry-run where they aren't needed
import os
if os.geteuid() != 0 and not args.dry_run:
raise Exception('This program requires root privileges.')
# Setup logging