Skip to content

Commit

Permalink
sort import
Browse files Browse the repository at this point in the history
  • Loading branch information
zzzz465 committed Jan 30, 2019
1 parent 0102b07 commit 2c11a17
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 40 deletions.
10 changes: 6 additions & 4 deletions Parse.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import xml.etree.ElementTree as ET
import os
from lxml import etree
import re
import tkinter as tk
import xml.etree.ElementTree as ET
from tkinter import filedialog
import re

from lxml import etree

#파이썬에서 환경변수를 지원 안함? 아니다. os.environ 사용
#mod_dic = {} # 테스트용
#mod_list = [] # 테스트용
Expand Down Expand Up @@ -130,4 +132,4 @@ def find_activate_mod(): #config 파일에서 active된 모드 리스트 가져
print(mod_dic)
print(mod_dic_num)
print(mod_list_workshop)
print(mod_list_local)
print(mod_list_local)
10 changes: 6 additions & 4 deletions downloader.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
from urllib.request import urlopen
import os
import zipfile
import json
import os
import shutil
import tempfile
import zipfile
from urllib.request import urlopen


def update():
tempdir = tempfile.mkdtemp()
os.chdir(tempdir)
Expand All @@ -30,4 +32,4 @@ def update():


if __name__ == '__main__':
pass
pass
22 changes: 10 additions & 12 deletions local_DB_test.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
import os
import re
import shutil
import Parse
import sys
import time
from collections import OrderedDict
from time import sleep

from colorama import Fore as Color
from colorama import init

import downloader
import time
import sys
import re
import localdb
from colorama import init
from colorama import Fore as Color
from collections import OrderedDict
import Parse

init(autoreset=True) # colroama 초기화

Version = 0.35
Expand Down Expand Up @@ -248,8 +251,3 @@
exit = True
else:
pass





10 changes: 2 additions & 8 deletions localdb.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
import json
import downloader
import os

import downloader


def return_local_db():
Expand Down Expand Up @@ -30,9 +30,3 @@ def return_compare_dic():

if __name__ == '__main__':
return_compare_dic()






20 changes: 9 additions & 11 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@

import os
import re
import shutil
import Parse
from time import sleep
import downloader
import time
import sys
import re
from colorama import init
import time
from time import sleep

from colorama import Fore as Color
from colorama import init

import downloader
import Parse

init(autoreset=True) # colroama 초기화

Version = 0.36
Expand Down Expand Up @@ -184,8 +187,3 @@
exit = True
else:
pass





3 changes: 2 additions & 1 deletion mod_sorter.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import os
import xml.etree.ElementTree as etree

import Parse


def num_grant(mod_list, mod_list_sorted, template, mod_dic):
mod_list_sorted = [] # 초기화
for mod in mod_list: #mod에 mod_list에 있는 모드 이름을 대입, mod_list는 모드의 문자열(이름)
Expand All @@ -16,4 +18,3 @@ def num_grant(mod_list, mod_list_sorted, template, mod_dic):

if __name__ == '__main__':
pass

0 comments on commit 2c11a17

Please sign in to comment.