Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed init

  • Loading branch information...
commit ecf40fe2cb5964d4b0163aeb18824b4e09809d5b 1 parent 1b590fb
Ed Summers authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 dflat.py
7 dflat.py
View
@@ -1,6 +1,6 @@
from os import chdir, getcwd, listdir, mkdir, rename, renames, \
symlink, walk, readlink, remove
-from os.path import join as j, abspath, dirname, isdir, isfile
+from os.path import join as j, abspath, dirname, isdir, isfile, islink
import re
import urllib
@@ -158,7 +158,10 @@ def _update_manifest(version_dir):
return manifest_file
def _current_version(home):
- return readlink(j(home, 'current'))
+ if islink(j(home, 'current')):
+ return readlink(j(home, 'current'))
+ else:
+ return None
def _anvl(name, value):
return "%s: %s\n"
Please sign in to comment.
Something went wrong with that request. Please try again.