Did I find the right examples for you? yes no

All Samples(45)  |  Call(45)  |  Derive(0)  |  Import(0)

src/m/a/MavensMate-SublimeText-HEAD/mavensmate.py   MavensMate-SublimeText(Download)
    def run(self):
        path = os.path.join(util.mm_project_directory(),util.get_project_name()+'.sublime-settings')
        sublime.active_window().run_command('open_file', {'file': path})
 
    def is_enabled(command):
    def finish(self, name):
        if not os.path.exists(os.path.join(util.mm_project_directory(), "apex-scripts")):
            os.makedirs(os.path.join(util.mm_project_directory(), "apex-scripts"))
 
        if ".cls" not in name:
            name = name + ".cls"
 
        f = open(os.path.join(util.mm_project_directory(), "apex-scripts", name), "w")
        f.close()
 
        sublime.active_window().open_file(os.path.join(util.mm_project_directory(), "apex-scripts", name))
 
    def is_enabled(command):

src/m/a/MavensMate-SublimeText-HEAD/lib/resource_bundle.py   MavensMate-SublimeText(Download)
        printer.write('\nCreating Resource Bundle(s)\n')
 
    if not os.path.exists(os.path.join(util.mm_project_directory(),'resource-bundles')):
        os.makedirs(os.path.join(util.mm_project_directory(),'resource-bundles'))
 
            baseFileName = fileName.split("/")[-1]
        if not refresh:
            if os.path.exists(os.path.join(util.mm_project_directory(),'resource-bundles',baseFileName+fileExtension)):
                printer.write('[OPERATION FAILED]: The resource bundle already exists\n')
                return
        if sys.platform == "win32":
            fz = zipfile.ZipFile(f, 'r')
            for fileinfo in fz.infolist():
                path = os.path.join(util.mm_project_directory(),'resource-bundles',baseFileName+fileExtension)
                    pass
        else:
            cmd = 'unzip \''+f+'\' -d \''+util.mm_project_directory()+'/resource-bundles/'+baseFileName+fileExtension+'\''
            os.system(cmd)
 

src/m/a/MavensMate-SublimeText-HEAD/lib/mm_interface.py   MavensMate-SublimeText(Download)
                payload['workspace'] = util.get_project_settings().get("workspace")
            else:
                payload['workspace'] = os.path.dirname(util.mm_project_directory())
        else:
            payload = {}
                    payload['workspace'] = util.get_project_settings().get("workspace")
                else:
                    payload['workspace'] = os.path.dirname(util.mm_project_directory())
 
            #open type