Skip to content

Commit

Permalink
more inspection
Browse files Browse the repository at this point in the history
  • Loading branch information
staffanm committed Jul 8, 2014
1 parent e056780 commit 4b1340e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ferenda/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,12 @@ def make_api_files(self):
except OSError as e: # happens on travis-ci
x = pkg_resources.get_provider("ferenda")
print("Got error '%s'. Provider %s, .module_path %s" % (str(e), x, x.module_path))
print("Does %s/res/ui exist? %s " % (x.module_path, os.path.exists(x.module_path + "/res/ui")))
print("Does %s/res/ui exist? %s (wd %s, os.listdir: %r)" % (x.module_path, os.path.exists(x.module_path + "/res/ui"), os.getcwd(), os.listdir(".")))
try:
fp = pkg_resources.resource_stream('ferenda', "res/ui/index.html")
print("Got hold of res/ui/index.html through .resource_stream")
except Exception as sub_e:
print("Couldn't get a res stream either: %s" % sub_e)
raise e # or pass
return files

Expand Down

0 comments on commit 4b1340e

Please sign in to comment.