Comments (3)
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.
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.
from summon.
Related Issues (9)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from summon.