joelcarlton / Sublime-CombineAndMinify

Combine a list of JavaScript files Into a single master and minified version
GNU General Public License v2.0
9 stars 3 forks source link

Problems with the pathnames #1

Open sylido opened 10 years ago

sylido commented 10 years ago

It seems like it doesn't recognize the /C/projectDir - the way that project paths are defined in sublime text 2. Had to import re and do the following to get it to work.

        fileList = re.sub(r"^/C", 'C:', fileList)
        fileList = re.sub("/", r'\\', fileList)

        inPath = re.sub(r"^/C", 'C:', inPath)
        inPath = re.sub("/", r'\\', inPath)

        outPath = re.sub(r"^/C", 'C:', outPath)
        outPath = re.sub("/", r'\\', outPath)

        jsMaster = re.sub(r"^/C", 'C:', jsMaster)
        jsMaster = re.sub("/", r'\\', jsMaster)

        jsMinify = re.sub(r"^/C", 'C:', jsMinify)
        jsMinify = re.sub("/", r'\\', jsMinify)

Great little script by the way.

joelcarlton commented 7 years ago

Can you send a pull request?