cobbpg / hp2any

Haskell space profiling toolset
http://www.haskell.org/haskellwiki/Hp2any
14 stars 15 forks source link

program depends on specific location of glade file during runtime #11

Open flip111 opened 6 years ago

flip111 commented 6 years ago

When i execute stack exec hp2any-manager the following error occurs:

(hp2any-manager:11506): libglade-WARNING **: could not find glade file 'src/manager.glade'
hp2any-manager: Error loading widget progressWindow
CallStack (from HasCallStack):
  error, called at src/Manager.hs:60:21 in main:Main

When i start from the manager directory it works without problems. It would be better if there was a more robust mechanism to find the glade file or otherwise embed this file in the executable.

beerendlauwers commented 5 years ago

https://github.com/cobbpg/hp2any/pull/14 should address this.

flip111 commented 5 years ago

that's nice, possible the file could be directly loaded into memory and avoid writing the temporary file. But it's better than it was so great