Move is_numerical() to joy.gui.utils.

This commit is contained in:
Simon Forman
2019-08-03 19:02:24 -07:00
parent 177d6cd433
commit a3f863ff18
3 changed files with 11 additions and 10 deletions
+8
View File
@@ -10,6 +10,14 @@ COMMITTER = 'Joy <[email protected]>'
DEFAULT_JOY_HOME = expanduser(join('~', '.joypy'))
def is_numerical(s):
try:
float(s)
except ValueError:
return False
return True
def home_dir(path):
'''Return the absolute path of an existing directory.'''