Hadron / carthage

Carthage is an Infrastructure as Code (IAC) framework
Other
7 stars 4 forks source link

Use a more useful filename for compile() #21

Closed kdienes closed 1 year ago

kdienes commented 2 years ago

As written, the script will get marked as resources/runner_console.py, leading to very confusing output in the debugger.

I'm confident in the try: part but not sure what's best if a filename is unavailable. There's always '' but I didn't look to see if pdb can read from resources.

Based on your feedback I'll update the patch and the message

hartmans commented 2 years ago

I don't see that the filename you retrieve gets used for anything. Are you sure this patch actually has an effect? If so, what am I missing?

I would be happy with something like or if finding the failename fails.