-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d80e8d3
commit ae91316
Showing
2 changed files
with
65 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import main | ||
import os | ||
|
||
def xedix_init(): | ||
current_dir = main.TextEditor().current_dir | ||
|
||
# Change directory using os.system | ||
os.system(f'cd "{current_dir}"') | ||
|
||
# Also change the Python script's working directory | ||
os.chdir(current_dir) | ||
|
||
# Create XediX Config files | ||
with open("theme.xcfg", "w") as f: | ||
f.write("dark") | ||
|
||
with open("xedix.xcfg", "w") as f: | ||
f.write("headerActive:#EDF0F2;") | ||
f.write("headerInactive:#b3d0e4;") | ||
|
||
# Create a Gthub Integration Config file | ||
with open("repo.ghicfg", "w") as f: | ||
f.write("") | ||
|
||
def python_init(): | ||
with open("requirements.txt", "w") as f: | ||
f.write("") | ||
|
||
def git_init(): | ||
with open(".gitignore", "w") as f: | ||
f.write("") | ||
|
||
os.system("git init") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters