Skip to content

Instantly share code, notes, and snippets.

@raingloom
Created August 23, 2016 16:51
Show Gist options
  • Save raingloom/3732e5c594bb6f41ead90ba912a61e1a to your computer and use it in GitHub Desktop.
Save raingloom/3732e5c594bb6f41ead90ba912a61e1a to your computer and use it in GitHub Desktop.
local src = package.searchpath( (...):gsub( '(%.)(.-)$', '%1_%2' ), package.path )
--used in Module.lua to find _Module.lua
--used for when the source needs source transformation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment