Fixed linux path system
This commit is contained in:
2
main.py
2
main.py
@@ -11,7 +11,7 @@ STD_HANDLE = 1 # Would want this to be 0, but it can cause issues
|
||||
if len(sys.argv) < 2: # Randomly select a shader
|
||||
from glob import glob
|
||||
from random import choice
|
||||
module = import_module( choice( glob("shaders/*.py") ).rstrip(".py").replace("\\", ".") )
|
||||
module = import_module( choice( glob("shaders/*.py") ).rstrip(".py").replace("\\", ".").replace("/",".") )
|
||||
else:
|
||||
module = import_module("shaders.%s" % sys.argv[1])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user