Fixed linux path system

This commit is contained in:
Emily 2020-02-14 10:29:21 +01:00
parent 18bcecf7b3
commit 10f637b1c0

View File

@ -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])