(self)
Creates the code, creates a file, and moves it to the correct location.
Creates the code, creates a file, and moves it to the correct location.
Creates the code creates a file and moves it to the correct location .
def compile(self):
        '''
        Creates the code, creates a file, and moves it to the correct location.
        '''
        code = self.build_script()
        save_loc = os.path.join(os.path.expanduser('~'), '.local/share/')
        print(save_loc)
        save_loc = self.create_path(save_loc, 'nautilus-python')
        save_loc = self.create_path(save_loc, 'extensions')
        save_loc = os.path.join(save_loc, f'{self.name}.py')
        py_file = open(save_loc, 'w')
        py_file.write(code)
        py_file.close()
def compile ( self ) : code = self . build_script ( ) save_loc = os . path . join ( os . path . expanduser ( '~' ) , '.local/share/' ) print ( save_loc ) save_loc = self . create_path ( save_loc , 'nautilus-python' ) save_loc = self . create_path ( save_loc , 'extensions' ) save_loc = os . path . join ( save_loc , f'{self.name}.py' ) py_file = open ( save_loc , 'w' ) py_file . write ( code ) py_file . close ( )