Skip to content

Commit 33b0550

Browse files
committed
Moved convert.py, gui.py and shared_globals.py to a "python" folder so it's more obvious that users should run "python main.py".
1 parent abe2bd4 commit 33b0550

File tree

4 files changed

+6
-15
lines changed

4 files changed

+6
-15
lines changed

main.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# from python import gui
2-
import gui
1+
from python import gui
32

43
gui.init_window_theme()
54
gui.run_window(gui.init_window())

convert.py renamed to python/convert.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import os, time, pathlib, shutil, math, re, sys, shutil, zipfile
22
from playsound import playsound
3-
# from python import shared_globals as cfg
4-
import shared_globals as cfg
3+
from python import shared_globals as cfg
54

65
from conversion_rules import conversion_rules
76

gui.py renamed to python/gui.py

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
# Run: python gui.py
2-
# Build: pyinstaller --noconsole --onefile --icon=media/cclmc-icon.ico --name="Legacy Mod Converter" gui.py
2+
# Build: pyinstaller --noconsole --onefile --icon=media/cclmc-icon.ico --name="Legacy Mod Converter" main.py
33

44
import os.path, pathlib, webbrowser
55
import PySimpleGUI as sg
6-
# from python import shared_globals as cfg
7-
import shared_globals as cfg
8-
# from python import convert
9-
import convert
6+
from python import shared_globals as cfg
7+
from python import convert
108

119

1210
def init_window_theme():
@@ -27,7 +25,6 @@ def get_folder_containing_mods(mods_folder):
2725

2826
def init_window():
2927
no_path_set_color = "#b35858"
30-
print(sg.user_settings_filename())
3128

3229
paths_column = [
3330
[sg.Frame(layout=[
@@ -125,8 +122,4 @@ def run_window(window):
125122
elif event == "-GITHUB-":
126123
webbrowser.open("https://github.com/cortex-command-community/Cortex-Command-Legacy-Mod-Converter")
127124
elif event == "-DISCORD-":
128-
webbrowser.open("https://discord.gg/SdNnKJN")
129-
130-
131-
# init_window_theme()
132-
# run_window(init_window())
125+
webbrowser.open("https://discord.gg/SdNnKJN")
File renamed without changes.

0 commit comments

Comments
 (0)