Git Product home page Git Product logo

Comments (3)

RackunSec avatar RackunSec commented on August 21, 2024

Currently there is no code that checks for an empty file, since I assumed ConfigParser was working correctly - as it did in all of my testing. That file should never be empty unless your version of ConfigParser is broken. You can add it to the file manually or you should be able to delete the file and re-run Summon to see if it can make the file properly after asking you if the path is correct.

from summon.

RackunSec avatar RackunSec commented on August 21, 2024

Here is the method that is called each time Summon is ran:

def check_config_file(self):
        if not os.path.exists("/etc/demon/summon.conf"):
            ans=input(f"{self.style.ques} We are running from {self.style.RED}{self.cwd}{self.style.RST} Would you like to make this your Summon binary path [y/n]? ")
            if ans=="y":
                config=ConfigParser()
                config['SUMMON']= {"summon_path":self.cwd}
            with open("/etc/demon/summon.conf","w") as config_file:
                config.write(config_file)

Did Summon ask you the question listed in the code snippet above? Did you get an error when you answered it?

from summon.

Traphowze avatar Traphowze commented on August 21, 2024

from summon.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.