-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
7 changed files
with
61 additions
and
43 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
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
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 |
---|---|---|
@@ -1,21 +1,35 @@ | ||
import os | ||
from paths import minedir, programdir | ||
|
||
|
||
def dirdefine(file, type): | ||
if type == "mine": | ||
minedir1 = open(file, "r") | ||
minedir = minedir1.readlines() | ||
minedir1.close() | ||
result = minedir.pop(0).split("\n") | ||
result = result.pop(0).split("\n") | ||
result = result.pop(0) | ||
return result | ||
if type == "prog": | ||
result2 = os.getcwd() | ||
return result2 | ||
def version_define(version): | ||
version = str(version) | ||
unknown = "unknown" | ||
if version == "" or version == " ": | ||
return unknown | ||
else: | ||
return version | ||
|
||
|
||
class prep: | ||
def __init__(self, minedirectory, programdirectory): | ||
self.minedir = minedirectory | ||
self.programdir = programdirectory | ||
|
||
def mine_preparator(self): | ||
if self.minedir == "" or not os.path.exists(self.minedir): | ||
self.minedir = "%appdata%/.minecraft" | ||
return self.minedir | ||
else: | ||
minedir.replace('\\', '/') | ||
return self.minedir | ||
|
||
def prog_preparator(self): | ||
if self.programdir == "" or not os.path.exists(self.programdir): | ||
self.programdir = os.getcwd() | ||
return self.programdir | ||
else: | ||
return self.programdir | ||
|
||
|
||
pySelector = prep(minedir, programdir) |
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
from exceptor import run | ||
|
||
|
||
program_version = 2.3 | ||
program_version = 2.4 | ||
|
||
|
||
run(program_version) | ||
|
||
#please, check settings.txt before panic about program is not working | ||
# please, check settings.txt before panic about program is not working |
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
This file was deleted.
Oops, something went wrong.
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