Compare commits

...

2 Commits
2.0.1 ... 2.0.2

Author SHA1 Message Date
f0cbc2df7b Version bump 2014-05-25 19:41:45 -04:00
2f56270ded Fix geteuid not existing on Windows 2014-05-24 16:16:59 +10:00
3 changed files with 3 additions and 3 deletions

View File

@ -38,7 +38,7 @@ from docopt import docopt
if __name__ == '__main__': if __name__ == '__main__':
# parse the command-line options # parse the command-line options
options = docopt(__doc__, version='cheat 2.0.1') options = docopt(__doc__, version='cheat 2.0.2')
# list directories # list directories
if options['--directories']: if options['--directories']:

View File

@ -9,7 +9,7 @@ def default_path():
# the default path becomes confused when cheat is run as root, so fail # the default path becomes confused when cheat is run as root, so fail
# under those circumstances. (There is no good reason to need to run cheat # under those circumstances. (There is no good reason to need to run cheat
# as root.) # as root.)
if os.geteuid() == 0: if os.name != 'nt' and os.geteuid() == 0:
die('Please do not run this application as root.'); die('Please do not run this application as root.');
# determine the default cheatsheet dir # determine the default cheatsheet dir

View File

@ -3,7 +3,7 @@ import os
setup( setup(
name = 'cheat', name = 'cheat',
version = '2.0.1', version = '2.0.2',
author = 'Chris Lane', author = 'Chris Lane',
author_email = 'chris@chris-allen-lane.com', author_email = 'chris@chris-allen-lane.com',
license = 'GPL3', license = 'GPL3',