Did I find the right examples for you? yes no Crawl my project Python Jobs
All Samples(7) | Call(7) | Derive(0) | Import(0)
src/s/k/SkeinFox-HEAD/2010-02-25_skeinforge_withRaftless/skeinforge_tools/craft_plugins/raft.py SkeinFox(Download)
def getCraftedGcode( self, gcodeText, repository ): "Parse gcode text and store the raft gcode." self.repository = repository self.minimumSupportRatio = math.tan( math.radians( repository.supportMinimumAngle.value ) ) self.supportEndText = settings.getFileInAlterationsOrGivenDirectory( os.path.dirname( __file__ ), 'Support_End.gcode' ) self.supportEndLines = gcodec.getTextLines( self.supportEndText ) self.supportStartText = settings.getFileInAlterationsOrGivenDirectory( os.path.dirname( __file__ ), 'Support_Start.gcode' )
src/s/k/SkeinFox-HEAD/2010-02-25_skeinforge_withRaftless/skeinforge_tools/craft_plugins/cool.py SkeinFox(Download)
def getCraftedGcode( self, gcodeText, coolRepository ): "Parse gcode text and store the cool gcode." self.coolRepository = coolRepository self.coolEndText = settings.getFileInAlterationsOrGivenDirectory( os.path.dirname( __file__ ), 'Cool_End.gcode' ) self.coolEndLines = gcodec.getTextLines( self.coolEndText ) self.coolStartText = settings.getFileInAlterationsOrGivenDirectory( os.path.dirname( __file__ ), 'Cool_Start.gcode' )
src/s/k/SkeinFox-HEAD/2010-02-25_skeinforge_withRaftless/skeinforge_tools/craft_plugins/export.py SkeinFox(Download)
def getReplaced( exportText ): "Get text with words replaced according to replace.csv file." replaceText = settings.getFileInAlterationsOrGivenDirectory( os.path.dirname( __file__ ), 'Replace.csv' ) if replaceText == '': return exportText
src/s/k/SkeinFox-HEAD/2010-02-25_skeinforge_withRaftless/skeinforge_tools/craft_plugins/home.py SkeinFox(Download)
def getCraftedGcode( self, gcodeText, homeRepository ): "Parse gcode text and store the home gcode." self.homingText = settings.getFileInAlterationsOrGivenDirectory( os.path.dirname( __file__ ), homeRepository.nameOfHomingFile.value ) if len( self.homingText ) < 1: return gcodeText
src/s/k/SkeinFox-HEAD/2010-02-25_skeinforge_withRaftless/skeinforge_tools/craft_plugins/preface.py SkeinFox(Download)
def addFromUpperLowerFile( self, fileName ): "Add lines of text from the fileName or the lowercase fileName, if there is no file by the original fileName in the directory." fileText = settings.getFileInAlterationsOrGivenDirectory( os.path.dirname( __file__ ), fileName ) fileLines = gcodec.getTextLines( fileText ) self.distanceFeedRate.addLinesSetAbsoluteDistanceMode( fileLines )