Skip to content
This repository was archived by the owner on May 5, 2024. It is now read-only.

Commit 0763e02

Browse files
committed
yeah
1 parent 7aaa0c5 commit 0763e02

File tree

3 files changed

+33
-4
lines changed

3 files changed

+33
-4
lines changed

.vscode/settings.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"python.testing.pytestArgs": [
3+
"python"
4+
],
5+
"python.testing.unittestEnabled": false,
6+
"python.testing.pytestEnabled": true
7+
}

python/registry.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import configparser
2+
3+
config = configparser.ConfigParser()
4+
5+
config.add_section('Section1')
6+
config.set('Section1', 'Option1', 'Value1')
7+
config.set('Section1', 'Option2', 'Value2')
8+
9+
config.add_section('Section2')
10+
config.set('Section2', 'Option3', 'Value3')
11+
config.set('Section2', 'Option4', 'Value4')
12+
13+
with open('config.ini', 'w') as configfile:
14+
config.write(configfile)
15+
print('File created')

python/shell.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import os
22
import subprocess
3-
from python.towii import pydata1,pydata2
4-
3+
from towii import pydata1,pydata2
54
import tkinter
65
from tkinter import messagebox
7-
from file import home_dir,config_file,addons,usrpass,pythonOS
6+
87

98
def print_greetings():
10-
9+
'''
10+
Print a welcome message to the user.
11+
'''
1112
print("thanks for using PythonicShell!")
1213
print("Version 1.0")
1314

@@ -19,6 +20,9 @@ def print_help():
1920

2021

2122
def mkdir():
23+
'''
24+
Create a new directory in the current working directory.
25+
'''
2226
directory_name = input("Enter the name of the directory to be created: ")
2327
path = os.path.join(os.getcwd(), directory_name)
2428

@@ -28,6 +32,9 @@ def mkdir():
2832
except OSError as error:
2933
print("Error creating directory '%s': %s" % (directory_name, error))
3034
def editfile():
35+
'''
36+
Edit a file in the current working directory.
37+
'''
3138
filename = input("Enter the name of the file to edit: ")
3239
path = os.path.join(os.getcwd(), filename)
3340
if 'path' == None:

0 commit comments

Comments
 (0)