Closed olus2000 closed 2 years ago
I found a cleaner share_path
. It is still big because in order to emulate actually getting the top item from a stack I used code similar to that of take
. With some assumptions most of that code can go away, but that can end up with the user getting some weird error messages when path is incorrect (empty file.path
or non-string value at the top).
Resolves #1
This is a proposed fix to #1 my issue regarding Quackery's file operations, especially
loadfile
. It uses a very nasty bit of python code in the newshare_path
function but I don't see how to implement this without needing to access ancillary stacks from python code or how to access ancillary stacks in a cleaner way.One of the commits also includes a single line change of the
matchwith
word to nest the predicate which allows the use ofdone
inside it without breaking the loop.